diff options
author | Sven Gothel <[email protected]> | 2012-08-25 15:22:20 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-08-25 15:22:20 +0200 |
commit | 741e97a3efddb5c489cb00a791cd7f84dd296fb0 (patch) | |
tree | f4ebe6e3eee1e9f23a18b9e6ea85a697319264d0 | |
parent | 5a196a9690a6ef43e38394992ef0c3874dbc0392 (diff) |
Adapt to JogAmp build infrastructure (get rid of 'dist' folder, drop jnlp files in ./jnlp-files) ; Fix jnlp files (add jar/ prefix)
-rw-r--r-- | build.xml | 35 | ||||
-rw-r--r-- | demo-template.jnlp | 2 | ||||
-rw-r--r-- | nbproject/project.properties | 4 | ||||
-rw-r--r-- | scripts/make.jogl.all.linux-x86_64.sh | 1 |
4 files changed, 20 insertions, 22 deletions
@@ -41,28 +41,26 @@ <target name="-post-jar" depends="tag.build,create-all-jnlps,gluegen.cpptasks.detect.os,build-archive"/> <target name="build-archive" if="build.archiveon"> - <property name="dist.zip.name" value="jocl-demos-${jocl-demos.version}-${os.and.arch}"/> + <property name="archive.zip.name" value="jocl-demos-${jocl-demos.version}-${os.and.arch}"/> - <mkdir dir="${dist.dir}/tmp/${dist.zip.name}"/> + <mkdir dir="${build.dir}/${archive.zip.name}"/> - <copy todir="${dist.dir}/tmp/${dist.zip.name}/jar" file="${dist.dir}/jocl-demos.jar"/> - <copy todir="${dist.dir}/tmp/${dist.zip.name}/jnlp-files" > - <fileset dir="${dist.dir}" includes="*.jnlp"/> - </copy> - <copy todir="${dist.dir}/tmp/${dist.zip.name}" > + <copy todir="${build.dir}/${archive.zip.name}" > <fileset dir="." includes="www/**"/> - <fileset dir="${dist.dir}" includes="*.properties"/> + <fileset dir="${build.dir}" includes="jar/**"/> + <fileset dir="${build.dir}" includes="jnlp-files/**"/> + <fileset dir="${build.dir}" includes="*.properties"/> </copy> - <zip basedir="${dist.dir}/tmp" destfile="${dist.dir}/${dist.zip.name}.zip"/> - <archive.7z basedir="${dist.dir}/tmp" destfile="${dist.dir}/${dist.zip.name}.7z" includes="*"/> + <archive.7z basedir="${build.dir}" destfile="${build.dir}/${archive.zip.name}.7z" includes="${archive.zip.name}/**"/> - <delete dir="${dist.dir}/tmp"/> + <delete dir="${build.dir}/${archive.zip.name}"/> </target> <target name="create-all-jnlps"> + <!-- preset properties for local testing --> <property name="jocl.codepase" value="JOCL_CODEBASE_TAG"/> <property name="jogl.codepase" value="JOGL_CODEBASE_TAG"/> <property name="jocl-demos.codepase" value="DEMO_CODEBASE_TAG"/> @@ -105,21 +103,20 @@ </target> <target name="tag.build"> - <property file="${dist.jar.dir}/artifact.properties"/> - <copy file="${jocl.root}/dist/artifact.properties" todir="${dist.jar.dir}" overwrite="true"/> - <echo file="${dist.jar.dir}/artifact.properties" message="jocl-demos.build.number=${jocl-demos.build.number}${line.separator}" append="true" /> - <echo file="${dist.jar.dir}/artifact.properties" message="jocl-demos.build.id=${jocl-demos.build.id}${line.separator}" append="true" /> - <echo file="${dist.jar.dir}/artifact.properties" message="jocl-demos.build.branch=${jocl-demos.build.branch}${line.separator}" append="true" /> - <echo file="${dist.jar.dir}/artifact.properties" message="jocl-demos.build.commit=${jocl-demos.build.commit}${line.separator}" append="true" /> + <copy file="${jocl.root}/dist/artifact.properties" todir="${build.dir}" overwrite="true"/> + <echo file="${build.dir}/artifact.properties" message="jocl-demos.build.number=${jocl-demos.build.number}${line.separator}" append="true" /> + <echo file="${build.dir}/artifact.properties" message="jocl-demos.build.id=${jocl-demos.build.id}${line.separator}" append="true" /> + <echo file="${build.dir}/artifact.properties" message="jocl-demos.build.branch=${jocl-demos.build.branch}${line.separator}" append="true" /> + <echo file="${build.dir}/artifact.properties" message="jocl-demos.build.commit=${jocl-demos.build.commit}${line.separator}" append="true" /> </target> <target name="create-jnlp"> <condition property="jogl.extension" - value='<extension name="newt-all-awt" href="${jogl.codepase}/newt-all-awt.jnlp"/>' + value='<extension name="jogl-all-awt" href="${jogl.codepase}/jogl-all-awt.jnlp"/>' else=""> <istrue value="${jnlp.jogl}"/> </condition> - <copy file="demo-template.jnlp" tofile="${dist.jar.dir}/${jnlp.name}.jnlp"> + <copy file="demo-template.jnlp" tofile="${build.dir}/jnlp-files/${jnlp.name}.jnlp"> <filterchain> <replacestring from="DEMO_TITLE" to="${jnlp.title}"/> <replacestring from="NAME_TAG" to="${jnlp.name}"/> diff --git a/demo-template.jnlp b/demo-template.jnlp index 42ff928..732fe86 100644 --- a/demo-template.jnlp +++ b/demo-template.jnlp @@ -13,7 +13,7 @@ <resources> <j2se href="http://java.sun.com/products/autodl/j2se" version="1.6+"/> <property name="sun.java2d.noddraw" value="true"/> - <jar href="jocl-demos.jar" main="true"/> + <jar href="jar/jocl-demos.jar" main="true"/> <extension name="jocl" href="JOCL_CODEBASE_TAG/jocl.jnlp" /> EXTENSION </resources> diff --git a/nbproject/project.properties b/nbproject/project.properties index 9724ff6..efda83e 100644 --- a/nbproject/project.properties +++ b/nbproject/project.properties @@ -29,8 +29,8 @@ debug.classpath=\ debug.test.classpath=\ ${run.test.classpath} # This directory is removed when the project is cleaned: -dist.dir=dist -dist.jar=${dist.dir}/jocl-demos.jar +dist.dir=${build.dir} +dist.jar=${dist.dir}/jar/jocl-demos.jar dist.javadoc.dir=${dist.dir}/javadoc endorsed.classpath= excludes= diff --git a/scripts/make.jogl.all.linux-x86_64.sh b/scripts/make.jogl.all.linux-x86_64.sh index d3cb547..542be1f 100644 --- a/scripts/make.jogl.all.linux-x86_64.sh +++ b/scripts/make.jogl.all.linux-x86_64.sh @@ -8,6 +8,7 @@ fi # -Dtarget.targetlevel=1.6 \ # -Dtarget.rt.jar=/opt-share/jre1.6.0_30/lib/rt.jar \ +BUILD_ARCHIVE=true \ ant \ -Dtarget.sourcelevel=1.6 \ -Dtarget.targetlevel=1.6 \ |