summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-tv/channeleditor/files/build-1.9.2.1.xml')
-rw-r--r--media-tv/channeleditor/files/build-1.9.2.1.xml43
1 files changed, 43 insertions, 0 deletions
diff --git a/media-tv/channeleditor/files/build-1.9.2.1.xml b/media-tv/channeleditor/files/build-1.9.2.1.xml
new file mode 100644
index 000000000000..51e132550077
--- /dev/null
+++ b/media-tv/channeleditor/files/build-1.9.2.1.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0"?>
+<project name="channeleditor" default="build">
+ <!-- some properties -->
+ <property name="src.dir" value="src"/>
+ <property name="resources.dir" value="src/java/"/>
+ <property name="build.dir" value="build"/>
+ <property name="dist.dir" value="dist"/>
+ <property name="project.jar" value="${dist.dir}/${ant.project.name}.jar"/>
+ <property name="target.jdk" value="1.4"/>
+
+ <!-- init -->
+ <target name="init">
+ <mkdir dir="${dist.dir}"/>
+ </target>
+
+ <!-- compile everything -->
+ <target name="compile" depends="init">
+ <javac srcdir="${src.dir}"
+ destdir="${build.dir}"
+ source="${target.jdk}"
+ target="${target.jdk}"
+ encoding="ISO-8859-1"/>
+ <copy todir="${build.dir}">
+ <fileset dir="${resources.dir}" excludes="**/*.java"/>
+ </copy>
+ </target>
+
+ <!-- build the jar files -->
+ <target name="build" depends="compile">
+ <jar jarfile="${project.jar}" basedir="${build.dir}">
+ <manifest>
+ <attribute name="Main-Class" value="${manifest.mainclass}"/>
+ </manifest>
+ </jar>
+ </target>
+
+ <!-- zip the sources -->
+ <target name="sourcezip">
+ <zip destfile="${dist.dir}/${ant.project.name}-src.zip">
+ <zipfileset dir="${src.dir}" />
+ </zip>
+ </target>
+</project>