Error when running ant

139 views
Skip to first unread message

sugarbear

unread,
Dec 2, 2008, 8:13:09 PM12/2/08
to jgrousedoc
Hi there,

Could anyone please let me know why I got this error? I downloaded the
latest GrouseDoc distribution with ANT and installed JDK 1.6

C:\jGrouseDoc-2.0\ant\bin>ant -f E:\TestCheckIn\jslibs\internal\samples
\javascripts\build.xml
Buildfile: E:\TestCheckIn\jslibs\internal\samples\javascripts
\build.xml

setup:

clean:
[delete] Deleting directory E:\TestCheckIn\jslibs\internal\samples
\api

makeProjectFile:
[mkdir] Created dir: E:\TestCheckIn\jslibs\internal\samples\api
[jgdoc] Building jGrouseDoc project file (BIN) E:\TestCheckIn
\jslibs\internal\samples\api\jgrouse.jgd

BUILD FAILED
java.lang.NoSuchMethodError: org.apache.tools.ant.types.FileSet.getDir
()Ljava/io/File;

Total time: 0 seconds

Here's my property file

#set jGrouseHome - location of jGrouseDoc distribution
jGrouseHome.default=C:/jGrouseDoc-2.0
#set the location of your source files
inputDir.default=E:/TestCheckIn/jslibs/internal/samples/javascripts/
#Set mask for input files
fileMask.default=**/*.js
#set output directory
outputDir.default=E:/TestCheckIn/jslibs/internal/samples/api

########### for additional information regarding configuration
parameters
########### see http://code.google.com/p/jgrousedoc/wiki/AdvancedConfiguration

Thanks very much!

denis.r...@gmail.com

unread,
Dec 2, 2008, 8:29:50 PM12/2/08
to jgrousedoc
Have you tried to run ant from the directory that contains your
build.xml file?

Like this:
E:\TestCheckIn\jslibs\internal\samples> C:\jGrouseDoc-2.0\ant\bin\ant

Regards,
Denis

sugarbear

unread,
Dec 2, 2008, 8:37:50 PM12/2/08
to jgrousedoc
Hi Denis,

I tried it just now but I got the same error.

thanks,
Kelly

denis.r...@gmail.com

unread,
Dec 2, 2008, 8:51:32 PM12/2/08
to jgrousedoc
Can you please also check if you have ANT_HOME environment variable
set up?
Maybe it is pointing to an older version of ant...

sugarbear

unread,
Dec 8, 2008, 1:50:32 PM12/8/08
to jgrousedoc
Hi Denis,

My ANT_HOME was pointing to the wrong version but I have since
corrected it and it gave me the same error.

thanks,
Kelly

denis.r...@gmail.com

unread,
Dec 8, 2008, 10:00:15 PM12/8/08
to jgrousedoc
Kelly,

The error clearly indicates that incorrect ANT runtime is being used.
I have made some experiments and it turned out that your system
classpath environment variable is being passed to ANT.
Check that setting, quite likely it is the cause of the problem.

Take a look at the ant.bat file - change the first command from 'echo
off' to 'echo on' and observe what parameters are being passed to java

Regards,
Denis

Kelly Luk

unread,
Dec 9, 2008, 1:30:16 AM12/9/08
to jgrou...@googlegroups.com
I will try that, thanks Denis!

sugarbear

unread,
Dec 10, 2008, 7:33:32 PM12/10/08
to jgrousedoc
I got past the ANT problem now, thanks very much Denis!

On Dec 8, 10:30 pm, "Kelly Luk" <kelly....@gmail.com> wrote:
> I will try that, thanks Denis!
>
Reply all
Reply to author
Forward
0 new messages