cancel
Showing results for 
Search instead for 
Did you mean: 

error in alfresco SDK setup

alfrescouser
Champ in-the-making
Champ in-the-making
Hello friends,
I have checked out Head revision of alfresco labs source code from svn://svn.alfresco.com.
Now I am trying to run  it through command line using ANT tool.
I set the TOMCAT_HOME and ant Environment variables.

The first command ant -f build.xml run successfully
But for the next step build failed
                           ant -f continuous.xml distribute
Here I am getting the error

BUILD FAILED
e:\alfrescoSDK\HEAD\root\continuous.xml:112: Execute failed:java.io.IOException: cannot run programme "svn":CreateProcess error=2, The system can not find the file specified


I am using tomcat 6.0.18

Please suggest any solution.

Thanks,
Madhura
11 REPLIES 11

lakshya
Champ in-the-making
Champ in-the-making
Hello Madhura,
Did you get the solution. I am also facing the same problem.

gyro_gearless
Champ in-the-making
Champ in-the-making
Hello Madhura,
Did you get the solution. I am also facing the same problem.

Hi,

i guess you need an svn.exe (Subversion) in your PATH - see e.g. http://www.sliksvn.com/en/download

HTH
Andreas

alfrescouser
Champ in-the-making
Champ in-the-making
Hello friend,

still getting the problem in setting alfresco developement environment.
If u came to know something,please post.

bye

lakshya
Champ in-the-making
Champ in-the-making
Hello,
I also got the same problem while running through command Line, but when tried with eclipse the application runs properly.

Try setting up the project in eclipse and run build-tomcat(default) target to create the war file in tomcat.
and start-tomcat-webclient for running the application  start-tomcat-webclient-debug for debugging.

You can go through the following links to setup project in eclipse
http://forums.alfresco.com/en/viewtopic.php?f=10&t=15336
http://wiki.alfresco.com/wiki/Alfresco_on_Eclipse#Check_out_the_Alfresco_source_code_using_Subclipse
http://wiki.alfresco.com/wiki/Alfresco_SVN_Development_Environment
http://subclipse.tigris.org/install.html

Happy Solving Smiley Happy

alfrescouser
Champ in-the-making
Champ in-the-making
Thanks friend,

I tried followed the same steps given by you, but still getting error in build.xml file.
when i finished all steps and clicked on build.xml file and selected run as ->Ant build , I got the following error

Buildfile: E:\sdk\alfrescoSDK\HEAD\root\build.xml

BUILD FAILED
file:E:/sdk/alfrescoSDK/HEAD/root/build.xml:3: Unexpected element "dirname"

Total time: 110 milliseconds

Could u suggest me any solution for this.

Thanks,
Madhura

gyro_gearless
Champ in-the-making
Champ in-the-making
I tried followed the same steps given by you, but still getting error in build.xml file.
when i finished all steps and clicked on build.xml file and selected run as ->Ant build , I got the following error

Buildfile: E:\sdk\alfrescoSDK\HEAD\root\build.xml

BUILD FAILED
file:E:/sdk/alfrescoSDK/HEAD/root/build.xml:3: Unexpected element "dirname"

Maybe check your version of ant - 1.6.5 works fine for me (and obviously knows about dirname…)

Cheers
Andreas

alfrescouser
Champ in-the-making
Champ in-the-making
Can you please tell me how you used ant to build it & where you associated this ant folder with Alfresco sdk.

Thanks.

lakshya
Champ in-the-making
Champ in-the-making
Download ant
set ANT_HOME as environment variable and try

I am using ant-1.7.0. You can try with any 1.7.0. or 1.6.5

alfrescouser
Champ in-the-making
Champ in-the-making
Dear friend,
I used apache ant 1.6 as well as apache ant 1.7.1
But again getting same problem of Build failed (Element dirname not found.)

Could you please suggest me any other way of ronning that.

Thanks,
Madhura