You have to add the ant contrib jar to your ant classpath (CLASSPATH var in ~/.antrc). It's here:
http://sourceforge.net/projects/jdee/files/jdee/Dependencies/ant-contrib-1.0b3-bin.tar.bz2/download On Jun 17, 2010, at 4:10 PM, Vincent Belaïche wrote: > Hello Len, > > Thank you for the quick answer: in fact I realize that I met some > trouble when trying to ant-compile JDEE, here is what I get when I > compile: > > > --8<-------------coupez ici--------------début-------------->8--- > $ ant build-java > Buildfile: c:\Programme\GNU\emacs-extension\jde-svn\jdee\jdee > \build.xml > [taskdef] Could not load definitions from resource net/sf/ > antcontrib/antlib.xml. It could not be found. > > init: > > build-java: > [javac] c:\Programme\GNU\emacs-extension\jde-svn\jdee\jdee > \build.xml:162: warning: 'includeantruntime' was not set, defaulting > to build.sysclasspath=last; set to false for repeatable builds > > BUILD SUCCESSFUL > Total time: 0 seconds > --8<-------------coupez ici---------------fin--------------->8--- > > In the same vein, I could not compile Lisp from ant --- I compiled it > manually --- although I had tweaked the jdee/config/default.properties > as follows: > > > --8<-------------coupez ici--------------début-------------->8--- > ## suggestion accpeted as to the default settings > > ## you will probably have to tweak these, whether you like it or not > prefix.dir=c:/Programme/GNU/emacs-extension/jde-svn/jdee/jdee > third.party.lib.dir=c:/Programme/GNU/emacs-23.1 > build.bin.emacs=c:/Programme/GNU/emacs-23.1/bin/emacs.exe > > ## Emacs 23+ has cedet built in and uses a different implementation > of what we > # need (avl) from bulit in as well > cedet.dir= > elib.dir= > --8<-------------coupez ici---------------fin--------------->8--- > > I have also launched that build-lisp under a *nix shell (MSYS to name > it) after setting environment variable EMACS to the emacs which I > use. Here is what I get. > > --8<-------------coupez ici--------------début-------------->8--- > $ export EMACS=c:/Programme/GNU/emacs-23.1/bin/emacs.exe > $ ant build-lisp > Buildfile: c:\Programme\GNU\emacs-extension\jde-svn\jdee\jdee > \build.xml > [taskdef] Could not load definitions from resource net/sf/ > antcontrib/antlib.xml. It could not be found. > > init: > > prepare-lisp-build: > > configure: > > configure-ebuild: > > BUILD FAILED > c:\Programme\GNU\emacs-extension\jde-svn\jdee\jdee\build.xml:103: > Execute failed: java.io.IOException: Cannot run program "emacs": > CreateProcess error=2, Le fichier spécifié est introuvable > at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) > at java.lang.Runtime.exec(Runtime.java:593) > at org.apache.tools.ant.taskdefs.Execute > $Java13CommandLauncher.exec(Execute.java:827) > at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:445) > at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:459) > at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java: > 635) > at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:676) > at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:502) > at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java: > 291) > at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) > at > sun > .reflect > .DelegatingMethodAccessorImpl > .invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org > .apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java: > 106) > at org.apache.tools.ant.Task.perform(Task.java:348) > at org.apache.tools.ant.Target.execute(Target.java:390) > at org.apache.tools.ant.Target.performTasks(Target.java:411) > at org.apache.tools.ant.Project.executeSortedTargets(Project.java: > 1360) > at org.apache.tools.ant.Project.executeTarget(Project.java:1329) > at > org > .apache > .tools > .ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) > at org.apache.tools.ant.Project.executeTargets(Project.java:1212) > at org.apache.tools.ant.Main.runBuild(Main.java:801) > at org.apache.tools.ant.Main.startAnt(Main.java:218) > at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) > at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) > Caused by: java.io.IOException: CreateProcess error=2, Le fichier > spécifié est introuvable > at java.lang.ProcessImpl.create(Native Method) > at java.lang.ProcessImpl.<init>(ProcessImpl.java:81) > at java.lang.ProcessImpl.start(ProcessImpl.java:30) > at java.lang.ProcessBuilder.start(ProcessBuilder.java:453) > ... 23 more > > Total time: 0 seconds > --8<-------------coupez ici---------------fin--------------->8--- > > Note that the ANT lisp build does not work any better if I modify by > hand the build.xml to have this in the beginning (last row added by > me): > > > --8<-------------coupez ici--------------début-------------->8--- > <!-- basic properties, the rest are taken from ${config.dir}/build. > --> > <property name="project.dir" location="./"/> > <property name="project.version" value="2.4.1"/> > <property name="config.dir" location="./config"/> > <property name="build.bin.emacs" value="c:/Programme/GNU/ > emacs-23.1/bin/emacs.exe" /> > --8<-------------coupez ici---------------fin--------------->8--- > > With this tweaking here is what I get: > > > --8<-------------coupez ici--------------début-------------->8--- > $ ant build-lisp > Buildfile: c:\Programme\GNU\emacs-extension\jde-svn\jdee\jdee > \build.xml > [taskdef] Could not load definitions from resource net/sf/ > antcontrib/antlib.xml. It could not be found. > > init: > > prepare-lisp-build: > > configure: > > configure-ebuild: > > BUILD FAILED > c:\Programme\GNU\emacs-extension\jde-svn\jdee\jdee\build.xml:103: > exec returned: -1 > > Total time: 2 seconds > --8<-------------coupez ici---------------fin--------------->8--- > > VBR, and thank you for your support. > > Vincent. > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > jdee-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/jdee-users ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ jdee-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jdee-users
