Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 14102 invoked by uid 500); 25 Jul 2001 21:05:34 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 14092 invoked from network); 25 Jul 2001 21:05:34 -0000 From: pgonia@ccis.com Sender: pgonia@ccis.com Reply-to: pgonia@ccis.com To: Stefan Bodewig , Stefan Bodewig , ant-user@jakarta.apache.org Date: Wed, 25 Jul 2001 13:13:32 GST+8 Subject: Re: Using recursive processing. X-Mailer: DMailWeb Web to Mail Gateway 2.6z, http://netwinsite.com/top_mail.htm Message-id: <3b5f367c.1bec.0@ccis.com> X-User-Info: 130.134.81.15 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N >On Wed, 25 Jul 2001, wrote: > >> >> >> >> >> I basicaly wish to jar of of the currents project .class files >> (located in gov/nasa/dfrc/MeasUNet directory structure). > >That would be > > > includes="**/*.class" /> > > >Assuming classes_output points to the correct parent directory. > >> The rube is that the are several other packets included in the >> gov.nasa.dfrc package prefix. However, I wish only to compile, and >> jar up those .java source files related to the current project. > >So use the excludes attribute or nested exclude elements - to exclude >packages rincewind and twoflower: > > > > > > Thanks for the help everyone. However, I am still having problems. The build completes and states that it was successful. However, the jar file is unusable. The jar -tvf exposes the following: tar: 22 garbage bytes ignored at end of archive tar: Error exit delayed from previous errors Ant debug provides the following info: init: Setting project property: DSTAMP -> 20010725 Setting project property: TSTAMP -> 0650 Setting project property: TODAY -> July 25 2001 compile_source: [javac] gov/nasa/dfrc/MeasUNet/plugins/tcpstat/TCPStat.java added as /home/dev/development/projects/gov/nasa/dfrc/MeasUNet/plugins/tcpstat/TCPStat.class doesn't exist. [javac] Compiling 1 source file to /home/dev/development/projects [javac] Using modern compiler [javac] Compilation args: -d /home/dev/development/projects -classpath /home/dev/development/projects:/usr/share/java/ant.jar:/usr/share/java/jaxp.jar:/usr/share/java/optional.jar:/usr/share/java/parser.jar:/opt/IBMJava2-13/lib/tools.jar:/opt/IBMJava2-13/jre/lib/rt.jar -sourcepath /home/dev/development/sources [javac] File to be compiled: /home/dev/development/sources/gov/nasa/dfrc/MeasUNet/plugins/tcpstat/TCPStat.java done: [jar] Note: creating empty jar archive /home/dev/development/jars/TCPStat.jar BUILD SUCCESSFUL Total time: 2 seconds Below is the build file I am using: I have reviewed the Ant users manual and have found it to be a great resource. However I have been working on setting up a build file (Ant) all day now and have decided that I'm to close to the problem. The Ant debug output has been very helpful in getting this build file to even compile the project. And has the output shows the jar utility seems to be running but with the indicated problem. The Ant debug output doesn't really provide much of any help in the area of jarring up the project. Anyone interested in helping? PTG