Hi,
I've builded the rpm-packages for SuSE-9.3, SuSE-10.0 and SuSE-10.1. They can be found here: http://packman.links2linux.de/
I have written a little build.xml to build the jar-file and the jacadoc with ant. If you're interested I can mail it or post it here.
These packages are also used for frinika.
have fun Toni
Yes, please send me the file or post it here so I can include it in the CVS.
cheers, Kalli
ok, here it is. It's a first draft and can be improved, but it works for me :)
<?xml version='1.0'?> <project name="rasmusdsp" default="jar" basedir=".">
<!-- set global properties for this build --> <property name="name" value="RasmusDSP"/> <property name="package" value="rasmus.*"/> <property name="version" value="0.1"/> <property name="jarname" value="${name}.jar"/> <property name="src" value="src"/> <property name="build" value="build"/> <property name="lib" value="lib"/> <property name="docs" value="docs"/> <property name="jarlibs" value="/usr/share/java"/>
<path id="lib.path"> <pathelement path="${build}"/> <fileset dir="${jarlibs}"> <include name="junit.jar"/> </fileset> </path> <!-- Create the build directory structure used by compile --> <target name="init"> <mkdir dir="${build}" /> <mkdir dir="${lib}" /> <mkdir dir="${docs}" /> </target>
<!-- run javac to compile the source files --> <target name="compile" depends="init"> <javac srcdir="${src}" destdir="${build}"> <classpath> <path refid="lib.path"/> </classpath> </javac> </target>
<!-- make a jar file --> <target name="jar" depends="compile"> <jar jarfile="${lib}/${jarname}" basedir="${build}"> <fileset dir="${src}" includes="**/*.PNG" /> <fileset dir="${src}" includes="icons/**/*.png" /> <fileset dir="${src}" includes="icons/*.db" /> <fileset dir="${src}" includes="*.txt" /> <fileset dir="${src}" includes="**/**/**/*.r" /> <fileset dir="${src}" includes="META-INF/**/*" /> </jar> </target>
<!-- create javadocs --> <target name="javadocs"> <javadoc packagenames="${package}" sourcepath="${src}" destdir="${docs}" author="true" version="true" use="true" windowtitle="${name} ${version} API" doctitle="${name} ${version} API"> <classpath> <path refid="lib.path"/> </classpath> </javadoc> </target>
<!-- Delete the ${build} and ${lib} directory trees --> <target name="clean"> <delete dir="${build}"/> <delete dir="${lib}"/> <delete dir="${docs}"/> </target> </project>
Log in to post a comment.
Hi,
I've builded the rpm-packages for SuSE-9.3, SuSE-10.0 and SuSE-10.1.
They can be found here:
http://packman.links2linux.de/
I have written a little build.xml to build the jar-file and the jacadoc with ant. If you're interested I can mail it or post it here.
These packages are also used for frinika.
have fun
Toni
Hi,
Yes, please send me the file or post it here so I can include it in the CVS.
cheers,
Kalli
ok, here it is. It's a first draft and can be improved, but it works for me :)
<?xml version='1.0'?>
<project name="rasmusdsp" default="jar" basedir=".">
<!-- set global properties for this build -->
<property name="name" value="RasmusDSP"/>
<property name="package" value="rasmus.*"/>
<property name="version" value="0.1"/>
<property name="jarname" value="${name}.jar"/>
<property name="src" value="src"/>
<property name="build" value="build"/>
<property name="lib" value="lib"/>
<property name="docs" value="docs"/>
<property name="jarlibs" value="/usr/share/java"/>
<path id="lib.path">
<pathelement path="${build}"/>
<fileset dir="${jarlibs}">
<include name="junit.jar"/>
</fileset>
</path>
<!-- Create the build directory structure used by compile -->
<target name="init">
<mkdir dir="${build}" />
<mkdir dir="${lib}" />
<mkdir dir="${docs}" />
</target>
<!-- run javac to compile the source files -->
<target name="compile" depends="init">
<javac srcdir="${src}"
destdir="${build}">
<classpath>
<path refid="lib.path"/>
</classpath>
</javac>
</target>
<!-- make a jar file -->
<target name="jar" depends="compile">
<jar jarfile="${lib}/${jarname}" basedir="${build}">
<fileset dir="${src}" includes="**/*.PNG" />
<fileset dir="${src}" includes="icons/**/*.png" />
<fileset dir="${src}" includes="icons/*.db" />
<fileset dir="${src}" includes="*.txt" />
<fileset dir="${src}" includes="**/**/**/*.r" />
<fileset dir="${src}" includes="META-INF/**/*" />
</jar>
</target>
<!-- create javadocs -->
<target name="javadocs">
<javadoc packagenames="${package}"
sourcepath="${src}"
destdir="${docs}"
author="true"
version="true"
use="true"
windowtitle="${name} ${version} API"
doctitle="${name} ${version} API">
<classpath>
<path refid="lib.path"/>
</classpath>
</javadoc>
</target>
<!-- Delete the ${build} and ${lib} directory trees -->
<target name="clean">
<delete dir="${build}"/>
<delete dir="${lib}"/>
<delete dir="${docs}"/>
</target>
</project>