cancel
Showing results for 
Search instead for 
Did you mean: 

Building Alfresco from Source

rporter
Champ in-the-making
Champ in-the-making
I've been trying to set this up throughout the day, and the build continues to fail.

I'm trying to follow the Alfresco Developer Guide to set up my development environment in Windows XP.  I created a folder c:\alf and checked out the source via svn.  And I set TOMCAT_HOME to where I extracted tomcat c:\servers\tomcat.  Then I ran "ant -f build.xml," and that works fine.  When I run "ant -f continuous.xml distribute," it complains that it can't find ALF-BINARIES\tomcat\apache-tomcat-6.0.18.zip.  So, I created that directory structure and put the zip in there.  Now when I run "ant -f continuous.xml distribute" it fails with

distribute-tomcat-windows:

BUILD FAILED
C:\alf\root\continuous.xml:290: C:\ALF-BINARIES\installer\win32 not found.

Total time: 1 minute 58 seconds

Any ideas about this?  Thanks.
6 REPLIES 6

mumbo
Champ in-the-making
Champ in-the-making
Hi

    create a directory installer/win32 in ALF-BINARIES , that will resolve the current issue , but once you create the directories the build will be looking for swftools and Image Magick tools inside this win32 directory so you might have to copy those binaries here (checkout this likehttp://wiki.alfresco.com/wiki/Alfresco_on_Eclipse for the details related to swftools and Imagmagick.), to sum up the directory structure in ALF-BINARIES will be like

ALF-BINARIEs
  |-installer
        | –win32
               |—commands
                        |–bin (Here you would have to copy all the binaries related to swftools(build will be looking for pdf2swf.exe, etc..)
                        |–ImageMagick(Here you would have convert.exe)
  |-tomcat
        |–apache-tomcat-6.0.18.zip
        |–apache-tomcat-5.5.25-virtserver-alfresco-1.1.zip
After creating this run the ant -f continuous.xml distribute ..it should be successful  (the build might take like ~20 -25 min to get completed).

Goodluck .

bmarbury
Champ in-the-making
Champ in-the-making
Where does one find apache-tomcat-5.5.25-virtserver-alfresco-1.1.zip (or, how to build)?

asurjit
Champ in-the-making
Champ in-the-making
I am getting similar issues when I am trying to build Alfresco from source.

I am able to build using ant -f build.xml but I want to distribute it using

C:\Alfresco\root>ant -f continuous.xml  distribute

I am getting below error


validate-webstudio-javascript:
    [mkdir] Created dir: C:\Alfresco\root\projects\web-studio\build\js
     [echo] Validating the Web Studio Javascript files

BUILD FAILED
java.lang.NoSuchMethodError: org.mozilla.javascript.Context.initStandardObjects()Lorg/mozilla/javascript/ScriptableObject;
        at net.happygiraffe.jslint.JSLint.<init>(JSLint.java:47)
        at net.happygiraffe.jslint.ant.JSLintTask.init(JSLintTask.java:150)
        at org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:223)
        at org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:414)
        at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:160)
        at org.apache.tools.ant.Task.perform(Task.java:347)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.Main.runBuild(Main.java:758)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

Total time: 8 minutes 3 seconds
C:\Alfresco\root>

Can someone help me out here please?

mrogers
Star Contributor
Star Contributor
Going back to the orginal thread.   It's an old version of tomcat.  
However why do you need it?   build.xml should be fine.

bmarbury
Champ in-the-making
Champ in-the-making
We don't "need" it, the build is looking for things that don't exist under ALF-BINARIES\installer\win32 and failing.

dtbullock
Champ in-the-making
Champ in-the-making
The OP is trying to build the SDK, as mentioned in Jeff Potts' fine "Alfresco Developer Guide".  Jeff recommends:


ant -f build.xml
ant -f continuous.xml distribute
as a means of building build/dist/alfresco-labs-sdk.[zip|tar.gz]


I have found that a more circumspect target in the continuous.xml build file achieves the desired effect, without the unnecessary step of building the Alfresco installer:


ant -f continuous.xml distribute-sdk




(thanks to 'josky' on http://forums.alfresco.com/en/viewtopic.php?f=10&t=17738)