Top.Mail.Ru
February 26th, 2005 - Java developers — LiveJournal
? ?

Java developers

February 26th, 2005
Image

10:32 pm - Imagetalldean - Survey Says:

The useful Ant task turned out to be:

<!-- set a timestamp just before compiling -->
<tstamp>
        <format property="compiletime"  pattern="MM/dd/yyyy hh:mm aa" />
</tstamp>
       
<!--compile the code-->
<javac srcdir="${src.dir}"
        destdir="${build.dest}"
        debug="${debug}"
        deprecation="${deprecation}"
        optimize="${optimize}"
        compiler="modern"
        excludes="**\UnitTest.java"
        memoryMaximumSize="240m"
        fork="yes"
        classpath="${lib.classpath}"
        listfiles="yes"/>

<!-- copy all of the local files that have changed -->
<copy todir="${devbuild.dest}" preservelastmodified="yes">
        <fileset dir="${build.dest}" includes="**/*.class">
                <date datetime="${compiletime}" when="after"/>
        </fileset>
</copy>       

Now I need to write a task to seed the local directories with the remote files. 
Powered by LiveJournal.com
Image