diff options
| author | Paul Buetow <paul@buetow.org> | 2009-02-08 01:14:20 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2009-02-08 01:14:20 +0000 |
| commit | 1b46a4d15a6b9a9d65e99547b8122dbe4a5ee48f (patch) | |
| tree | 5d53daf5888d17ab2d176084e2448153087cc4a8 | |
| parent | f9c028bb612a1753b886939e851c2b21ff17764a (diff) | |
| -rw-r--r-- | .classpath | 6 | ||||
| -rw-r--r-- | .project | 17 | ||||
| -rw-r--r-- | build.xml | 65 |
3 files changed, 65 insertions, 23 deletions
diff --git a/.classpath b/.classpath deleted file mode 100644 index 233be1d..0000000 --- a/.classpath +++ /dev/null @@ -1,6 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<classpath> - <classpathentry kind="src" path=""/> - <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> - <classpathentry kind="output" path=""/> -</classpath> diff --git a/.project b/.project deleted file mode 100644 index 7c2a17a..0000000 --- a/.project +++ /dev/null @@ -1,17 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<projectDescription> - <name>NetCalendar</name> - <comment></comment> - <projects> - </projects> - <buildSpec> - <buildCommand> - <name>org.eclipse.jdt.core.javabuilder</name> - <arguments> - </arguments> - </buildCommand> - </buildSpec> - <natures> - <nature>org.eclipse.jdt.core.javanature</nature> - </natures> -</projectDescription> diff --git a/build.xml b/build.xml new file mode 100644 index 0000000..11630ea --- /dev/null +++ b/build.xml @@ -0,0 +1,65 @@ +<project name="NetCalendar" default="dist" basedir="."> + <description>This is the NetCalendar application!</description> + + <!-- set global properties for this build --> + <property name="sources" location="sources" /> + <property name="dist" location="dist" /> + <property name="classes" location="classes" /> + + <target name="init"> + <tstamp /> + <mkdir dir="${classes}" /> + </target> + + <target name="compile" depends="init" description="compile the source" > + <javac srcdir="${sources}" destdir="${classes}"> + <compilerarg value="-Xlint:deprecation,unchecked" /> + </javac> + <copy todir="${classes}/icons"> + <fileset dir="icons" /> + </copy> + </target> + + <target name="dist" depends="compile" description="generate the distribution" > + <delete file="MANIFEST.MF" /> + + <manifest file="MANIFEST.MF"> + <attribute name="Built-By" value="Dipl.-Inform. (FH) Paul C. Buetow" /> + <attribute name="Main-Class" value="shared/Main" /> + </manifest> + + <mkdir dir="${dist}/lib" /> + <jar jarfile="${dist}/lib/NetCalendar-${DSTAMP}.jar" basedir="${classes}" manifest="MANIFEST.MF" /> + <copy file="${dist}/lib/NetCalendar-${DSTAMP}.jar" tofile="${dist}/lib/NetCalendar-Latest.jar" /> + </target> + + <target name="clean" description="clean up" > + <delete dir="${basedir}/javadoc/" /> + <delete dir="${classes}" /> + <delete dir="${dist}" /> + <delete file="MANIFEST.MF" /> + </target> + + <target name="rundist" depends="dist"> + <java jar="${dist}/lib/NetCalendar-Latest.jar" fork="true" /> + </target> + + <target name="run" depends="compile"> + <java dir="${classes}" classname="shared.Main" fork="true" /> + </target> + + <target name="testdist" depends="dist,rundist" /> + + <target name="test" depends="compile"> + <java dir="${classes}" classname="shared.Main" fork="true"> + <!-- <arg value="-debug" /> --> + </java> + </target> + + <target name="javadoc" description="Generate Javadocs"> + <mkdir dir="${basedir}/javadoc/"/> + <javadoc destdir="${basedir}/javadoc/"> + <fileset dir="${basedir}/" includes="**/*.java" /> + </javadoc> + </target> +</project> |
