[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Patch for build.xml (was: Re: Auto create a JAR file?)
> Something like:
> jar cv0f bin/ozone.jar org
>
> But, this will also include the source files and other files
> and all we want is the classes.
>
> Is there a better way to do this?
With Ant, yes. I've attached a patch to build.xml that should enable you
do just do "ant classes-jar". I haven't been able to test it though
since at the moment I can't get Ozone to compile at all - and I don't
have time to look into it now. It's an almost exact copy of a
similar thing from one of my projects though, so it should work.
And btw, I'm getting these types of messages from CVS:
cvs server: warning: org/ozoneDB/tools/CommandExecute.java is not (any
longer) pertinent
I've not seen this before. What's it mean?
--
/ Peter Schuller, InfiDyne Technologies HB
PGP userID: 0x5584BD98 or 'Peter Schuller <peter.schuller@infidyne.com>'
Key retrival: Send an E-Mail to getpgpkey@scode.infidyne.com
E-Mail: peter.schuller@infidyne.com Web: http://scode.infidyne.com
Index: build.xml
===================================================================
RCS file: /raid/Repository/ozone/build.xml,v
retrieving revision 1.46
diff -r1.46 build.xml
508c508,516
<
---
> <!-- =================================================================== -->
> <!-- Builds a .jar file with all classes. -->
> <!-- =================================================================== -->
> <target name="classes-jar" depends="main">
> <jar jarfile="${name}-${version}-classes.jar"
> basedir="."
> includes="**/*.class"/>
> </target>
>