You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Robin Ziolkowski <c-...@wcom.com> on 2001/03/22 19:30:01 UTC
Ant binary build file may be corrupted.
To whom it may concern.
Myself and a colleague both recently downloaded the ant1.3 build binary from the
jakarta ftp server.
The file was jakarta-ant-1.3-bin.tar.gz. This was downloaded to Sun machines
a server and a workstation) running Solaris 7. The file was unzipped using
gunzip then untarred using tar -xvf. The untarring process ended with a
"directory checksum" error. This error does not occur if the file contents are
viewed using the -tvf switches.
Regards,
Robin
Ant newbie
Posted by plim <pe...@i.am>.
Hi I'm a newbie at Ant
Can somebody give me a hand at setting up my buidfile?
This is what I have...
My project root directory is called "root"
under the root directory I have 2 sub-directories called "src" and "classes"
I have a fixed set of java files in the src directory...
momoAxis.java
momoColor.java
momoCoord.java
momoData.java
momoDate.java
momoDateAxis.java
momoDateEntry.java
momoEntry.java
momoGUI.java
momoGraph.java
momoLine.java
momoMeter.java
How can I setup a FileSet or just a property that list all my java files?
PatternSets will not work for me because I have many test/junk java files in
the src directory as well. I only want to compile the fixed set of java
files.
Something like....
CLASSES = momoAxis.class \
momoColor.class \
momoCoord.class \
momoData.class \
etc..
How can I setup tasks to compile each java file in the src directory
and put the corresponding class files in the classes directory?
Also how do I use the depend task to generate dependencies for each class
file?
Something like...
.SUFFIXES: .java .class
.java.class: $(DEPENDENCIES)
$(COMPILER) $(COPTIONS) -classpath "$(CLASSPATH)" $?
Thanks very much
pengster
Re: Ant binary build file may be corrupted.
Posted by Justin Callison <ju...@webct.com>.
Not sure if this is the same problem, but I know that the tar that ships
with Solaris has trouble when the archive contains long file/path names.
Using gnu-tar, we had no problems.
Hope this helps,
Justin
> From: "james" <ja...@yoosed.com>
> Reply-To: ant-user@jakarta.apache.org
> Date: Thu, 22 Mar 2001 13:50:03 -0600
> To: <an...@jakarta.apache.org>, <ro...@wcom.com>
> Subject: Re: Ant binary build file may be corrupted.
>
> I had the same problem also on sun....
> but the same .gz file unzips and untars fine on linux :
>
> tar -zxvf jakarta-ant-1.3-bin.tar.gz
>
> can't do that on our sun box. I'm thinking that gunzip is doing something
> funky to the tar file.
> what I did was to go ahead and gunzip and untar and then explicitly extract
> the missing files from the archive...(i believe it is the lib dir that
> doesn't untar successfully)
>
> ant seems to work fine after that.
>
> hope this helps,
> james
>
> ----- Original Message -----
> From: "Robin Ziolkowski" <c-...@wcom.com>
> To: <an...@jakarta.apache.org>
> Sent: Thursday, March 22, 2001 12:30 PM
> Subject: Ant binary build file may be corrupted.
>
>
>> To whom it may concern.
>>
>> Myself and a colleague both recently downloaded the ant1.3 build binary
> from the
>> jakarta ftp server.
>> The file was jakarta-ant-1.3-bin.tar.gz. This was downloaded to Sun
> machines
>> a server and a workstation) running Solaris 7. The file was unzipped
> using
>> gunzip then untarred using tar -xvf. The untarring process ended with a
>> "directory checksum" error. This error does not occur if the file
> contents are
>> viewed using the -tvf switches.
>>
>> Regards,
>> Robin
>>
>>
>>
>
Re: Ant binary build file may be corrupted.
Posted by james <ja...@yoosed.com>.
I had the same problem also on sun....
but the same .gz file unzips and untars fine on linux :
tar -zxvf jakarta-ant-1.3-bin.tar.gz
can't do that on our sun box. I'm thinking that gunzip is doing something
funky to the tar file.
what I did was to go ahead and gunzip and untar and then explicitly extract
the missing files from the archive...(i believe it is the lib dir that
doesn't untar successfully)
ant seems to work fine after that.
hope this helps,
james
----- Original Message -----
From: "Robin Ziolkowski" <c-...@wcom.com>
To: <an...@jakarta.apache.org>
Sent: Thursday, March 22, 2001 12:30 PM
Subject: Ant binary build file may be corrupted.
> To whom it may concern.
>
> Myself and a colleague both recently downloaded the ant1.3 build binary
from the
> jakarta ftp server.
> The file was jakarta-ant-1.3-bin.tar.gz. This was downloaded to Sun
machines
> a server and a workstation) running Solaris 7. The file was unzipped
using
> gunzip then untarred using tar -xvf. The untarring process ended with a
> "directory checksum" error. This error does not occur if the file
contents are
> viewed using the -tvf switches.
>
> Regards,
> Robin
>
>
>
RE: Ant binary build file may be corrupted.
Posted by Conor MacNeill <co...@cortexebusiness.com.au>.
> From: Conor MacNeill [mailto:conor@cortexebusiness.com.au]
>
> Robin,
>
> You downloaded from here
> http://jakarta.apache.org/builds/ant/release/v1.3/
> right?
>
> Did you read this on that page?
> "This is release 1.3 of Ant. It is available in both binary and source
> distributions. The tar files in the distribution use GNU tar extensions
> and must be untarred with a GNU compatible version of tar."
>
> If I made that somehow bigger, would you have read it?
>
> Conor
>
Robin has objected to this reply as being somewhat sarcastic so for that I
apologize - it was unintended. It was a genuine question.
Anyway, I have updated the README files in the bin and src directories.
Conor
RE: Ant binary build file may be corrupted.
Posted by Conor MacNeill <co...@cortexebusiness.com.au>.
Robin,
You downloaded from here
http://jakarta.apache.org/builds/ant/release/v1.3/
right?
Did you read this on that page?
"This is release 1.3 of Ant. It is available in both binary and source
distributions. The tar files in the distribution use GNU tar extensions
and must be untarred with a GNU compatible version of tar."
If I made that somehow bigger, would you have read it?
Conor
> -----Original Message-----
> From: Robin Ziolkowski [mailto:c-robin.ziolkowski@wcom.com]
> Sent: Friday, 23 March 2001 5:30 AM
> To: ant-user@jakarta.apache.org
> Subject: Ant binary build file may be corrupted.
>
>
> To whom it may concern.
>
> Myself and a colleague both recently downloaded the ant1.3 build
> binary from the
> jakarta ftp server.
> The file was jakarta-ant-1.3-bin.tar.gz. This was downloaded to
> Sun machines
> a server and a workstation) running Solaris 7. The file was
> unzipped using
> gunzip then untarred using tar -xvf. The untarring process ended with a
> "directory checksum" error. This error does not occur if the
> file contents are
> viewed using the -tvf switches.
>
> Regards,
> Robin
>
>
RE: Ant binary build file may be corrupted.
Posted by Robin Ziolkowski <c-...@wcom.com>.
All,
Thanks for the input! It turns out that the Solaris tar is at fault. I
downloaded and installed GNU tar and it works just fine.
To the maintainer of the Ant web page. A suggestion. Have the download link
point to the parent directory instead of the /bin directory. As is was so
kindly pointed out to me ;-) , warning exists on this page that is not in the
/bin directory telling to use GNU tar.
Regards,
Robin
> -----Original Message-----
> From: Robin Ziolkowski [mailto:c-robin.ziolkowski@wcom.com]
> Sent: Thursday, March 22, 2001 11:30 AM
> To: ant-user@jakarta.apache.org
> Subject: Ant binary build file may be corrupted.
>
>
> To whom it may concern.
>
> Myself and a colleague both recently downloaded the ant1.3 build
> binary from the
> jakarta ftp server.
> The file was jakarta-ant-1.3-bin.tar.gz. This was downloaded to Sun machines
> a server and a workstation) running Solaris 7. The file was unzipped using
> gunzip then untarred using tar -xvf. The untarring process ended with a
> "directory checksum" error. This error does not occur if the file
> contents are
> viewed using the -tvf switches.
>
> Regards,
> Robin
>