New build file for desktopgui. Should work fine for anyone using java 1.6.
This commit is contained in:
@ -1,74 +1,51 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<project name="desktopgui" default="compile" basedir=".">
|
||||||
<!-- You may freely edit this file. See commented blocks below for -->
|
<description>
|
||||||
<!-- some examples of how to customize the build. -->
|
A desktopgui for I2P
|
||||||
<!-- (If you delete it and reopen the project it will be recreated.) -->
|
</description>
|
||||||
<!-- By default, only the Clean and Build commands use this build script. -->
|
<!-- set global properties for this build -->
|
||||||
<!-- Commands such as Run, Debug, and Test only use this build script if -->
|
<property name="src" location="src"/>
|
||||||
<!-- the Compile on Save feature is turned off for the project. -->
|
<property name="bin" location="bin"/>
|
||||||
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
|
<property name="dist" location="dist"/>
|
||||||
<!-- in the project's Project Properties dialog box.-->
|
<property name="lib" location="lib"/>
|
||||||
<project name="desktopgui" default="default" basedir=".">
|
<property name="i2pref" location="../../build"/>
|
||||||
<description>Builds, tests, and runs the project desktopgui.</description>
|
|
||||||
<import file="nbproject/build-impl.xml"/>
|
|
||||||
<!--
|
|
||||||
|
|
||||||
There exist several targets which are by default empty and which can be
|
<path id="classpath">
|
||||||
used for execution of your tasks. These targets are usually executed
|
<fileset dir="${lib}" includes="**/*.jar"/>
|
||||||
before and after some main targets. They are:
|
<fileset dir="${i2pref}" includes="**/*.jar"/>
|
||||||
|
</path>
|
||||||
-pre-init: called before initialization of project properties
|
|
||||||
-post-init: called after initialization of project properties
|
|
||||||
-pre-compile: called before javac compilation
|
|
||||||
-post-compile: called after javac compilation
|
|
||||||
-pre-compile-single: called before javac compilation of single file
|
|
||||||
-post-compile-single: called after javac compilation of single file
|
|
||||||
-pre-compile-test: called before javac compilation of JUnit tests
|
|
||||||
-post-compile-test: called after javac compilation of JUnit tests
|
|
||||||
-pre-compile-test-single: called before javac compilation of single JUnit test
|
|
||||||
-post-compile-test-single: called after javac compilation of single JUunit test
|
|
||||||
-pre-jar: called before JAR building
|
|
||||||
-post-jar: called after JAR building
|
|
||||||
-post-clean: called after cleaning build products
|
|
||||||
|
|
||||||
(Targets beginning with '-' are not intended to be called on their own.)
|
|
||||||
|
|
||||||
Example of inserting an obfuscator after compilation could look like this:
|
|
||||||
|
|
||||||
<target name="-post-compile">
|
|
||||||
<obfuscate>
|
|
||||||
<fileset dir="${build.classes.dir}"/>
|
|
||||||
</obfuscate>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
For list of available properties check the imported
|
|
||||||
nbproject/build-impl.xml file.
|
|
||||||
|
|
||||||
|
|
||||||
Another way to customize the build is by overriding existing main targets.
|
<target name="init">
|
||||||
The targets of interest are:
|
<!-- Create the time stamp -->
|
||||||
|
<tstamp/>
|
||||||
|
<mkdir dir="${dist}"/>
|
||||||
|
<mkdir dir="${bin}"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
-init-macrodef-javac: defines macro for javac compilation
|
<target name="compile" depends="init"
|
||||||
-init-macrodef-junit: defines macro for junit execution
|
description="compile the source " >
|
||||||
-init-macrodef-debug: defines macro for class debugging
|
<!-- Compile the java code from ${src} into ${bin} -->
|
||||||
-init-macrodef-java: defines macro for class execution
|
<javac srcdir="${src}" destdir="${bin}" classpathref="classpath"/>
|
||||||
-do-jar-with-manifest: JAR building (if you are using a manifest)
|
<copy todir="${bin}">
|
||||||
-do-jar-without-manifest: JAR building (if you are not using a manifest)
|
<fileset dir="${src}">
|
||||||
run: execution of project
|
<exclude name="**/*.java"/>
|
||||||
-javadoc-build: Javadoc generation
|
</fileset>
|
||||||
test-report: JUnit report generation
|
</copy>
|
||||||
|
</target>
|
||||||
|
|
||||||
An example of overriding the target for project execution could look like this:
|
<target name="jar" depends="compile"
|
||||||
|
description="generate the distribution" >
|
||||||
|
<!-- Create the distribution directory -->
|
||||||
|
<mkdir dir="${dist}/lib"/>
|
||||||
|
|
||||||
<target name="run" depends="desktopgui-impl.jar">
|
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||||||
<exec dir="bin" executable="launcher.exe">
|
<zip destfile="${dist}/desktopgui.jar" basedir="${bin}" />
|
||||||
<arg file="${dist.jar}"/>
|
</target>
|
||||||
</exec>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
Notice that the overridden target depends on the jar target and not only on
|
<target name="clean"
|
||||||
the compile target as the regular run target does. Again, for a list of available
|
description="clean up" >
|
||||||
properties which you can use, check the target you are overriding in the
|
<!-- Delete the ${build} and ${dist} directory trees -->
|
||||||
nbproject/build-impl.xml file.
|
<delete dir="${bin}"/>
|
||||||
|
<delete dir="${dist}"/>
|
||||||
-->
|
</target>
|
||||||
</project>
|
</project>
|
||||||
|
@ -152,7 +152,7 @@ is divided into following sections:
|
|||||||
<attribute default="${includes}" name="includes"/>
|
<attribute default="${includes}" name="includes"/>
|
||||||
<attribute default="${excludes}" name="excludes"/>
|
<attribute default="${excludes}" name="excludes"/>
|
||||||
<attribute default="${javac.debug}" name="debug"/>
|
<attribute default="${javac.debug}" name="debug"/>
|
||||||
<attribute default="/does/not/exist" name="sourcepath"/>
|
<attribute default="" name="sourcepath"/>
|
||||||
<element name="customize" optional="true"/>
|
<element name="customize" optional="true"/>
|
||||||
<sequential>
|
<sequential>
|
||||||
<javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}">
|
<javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}">
|
||||||
@ -218,13 +218,13 @@ is divided into following sections:
|
|||||||
</sequential>
|
</sequential>
|
||||||
</macrodef>
|
</macrodef>
|
||||||
</target>
|
</target>
|
||||||
<target depends="-init-debug-args" name="-init-macrodef-nbjpda">
|
<target name="-init-macrodef-nbjpda">
|
||||||
<macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
|
<macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
|
||||||
<attribute default="${main.class}" name="name"/>
|
<attribute default="${main.class}" name="name"/>
|
||||||
<attribute default="${debug.classpath}" name="classpath"/>
|
<attribute default="${debug.classpath}" name="classpath"/>
|
||||||
<attribute default="" name="stopclassname"/>
|
<attribute default="" name="stopclassname"/>
|
||||||
<sequential>
|
<sequential>
|
||||||
<nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
|
<nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="dt_socket">
|
||||||
<classpath>
|
<classpath>
|
||||||
<path path="@{classpath}"/>
|
<path path="@{classpath}"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
@ -255,12 +255,6 @@ is divided into following sections:
|
|||||||
<condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
|
<condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
|
||||||
<istrue value="${have-jdk-older-than-1.4}"/>
|
<istrue value="${have-jdk-older-than-1.4}"/>
|
||||||
</condition>
|
</condition>
|
||||||
<condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
|
|
||||||
<os family="windows"/>
|
|
||||||
</condition>
|
|
||||||
<condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
|
|
||||||
<isset property="debug.transport"/>
|
|
||||||
</condition>
|
|
||||||
</target>
|
</target>
|
||||||
<target depends="-init-debug-args" name="-init-macrodef-debug">
|
<target depends="-init-debug-args" name="-init-macrodef-debug">
|
||||||
<macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
|
<macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
|
||||||
@ -270,7 +264,7 @@ is divided into following sections:
|
|||||||
<sequential>
|
<sequential>
|
||||||
<java classname="@{classname}" dir="${work.dir}" fork="true">
|
<java classname="@{classname}" dir="${work.dir}" fork="true">
|
||||||
<jvmarg line="${debug-args-line}"/>
|
<jvmarg line="${debug-args-line}"/>
|
||||||
<jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
|
<jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
|
||||||
<jvmarg line="${run.jvmargs}"/>
|
<jvmarg line="${run.jvmargs}"/>
|
||||||
<classpath>
|
<classpath>
|
||||||
<path path="@{classpath}"/>
|
<path path="@{classpath}"/>
|
||||||
@ -317,13 +311,6 @@ is divided into following sections:
|
|||||||
===================
|
===================
|
||||||
-->
|
-->
|
||||||
<target depends="init" name="deps-jar" unless="no.deps"/>
|
<target depends="init" name="deps-jar" unless="no.deps"/>
|
||||||
<target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
|
|
||||||
<target depends="init" name="-check-automatic-build">
|
|
||||||
<available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
|
|
||||||
</target>
|
|
||||||
<target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
|
|
||||||
<antcall target="clean"/>
|
|
||||||
</target>
|
|
||||||
<target depends="init,deps-jar" name="-pre-pre-compile">
|
<target depends="init,deps-jar" name="-pre-pre-compile">
|
||||||
<mkdir dir="${build.classes.dir}"/>
|
<mkdir dir="${build.classes.dir}"/>
|
||||||
</target>
|
</target>
|
||||||
@ -344,7 +331,7 @@ is divided into following sections:
|
|||||||
<!-- Empty placeholder for easier customization. -->
|
<!-- Empty placeholder for easier customization. -->
|
||||||
<!-- You can override this target in the ../build.xml file. -->
|
<!-- You can override this target in the ../build.xml file. -->
|
||||||
</target>
|
</target>
|
||||||
<target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
|
<target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
|
||||||
<target name="-pre-compile-single">
|
<target name="-pre-compile-single">
|
||||||
<!-- Empty placeholder for easier customization. -->
|
<!-- Empty placeholder for easier customization. -->
|
||||||
<!-- You can override this target in the ../build.xml file. -->
|
<!-- You can override this target in the ../build.xml file. -->
|
||||||
@ -358,7 +345,7 @@ is divided into following sections:
|
|||||||
<!-- Empty placeholder for easier customization. -->
|
<!-- Empty placeholder for easier customization. -->
|
||||||
<!-- You can override this target in the ../build.xml file. -->
|
<!-- You can override this target in the ../build.xml file. -->
|
||||||
</target>
|
</target>
|
||||||
<target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
|
<target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
|
||||||
<!--
|
<!--
|
||||||
====================
|
====================
|
||||||
JAR BUILDING SECTION
|
JAR BUILDING SECTION
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
build.xml.data.CRC32=c4b345cd
|
build.xml.data.CRC32=c4b345cd
|
||||||
build.xml.script.CRC32=9c13114f
|
build.xml.script.CRC32=9785bb9a
|
||||||
build.xml.stylesheet.CRC32=958a1d3e
|
build.xml.stylesheet.CRC32=be360661
|
||||||
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
|
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
|
||||||
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
|
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
|
||||||
nbproject/build-impl.xml.data.CRC32=c4b345cd
|
nbproject/build-impl.xml.data.CRC32=c4b345cd
|
||||||
nbproject/build-impl.xml.script.CRC32=8c02c081
|
nbproject/build-impl.xml.script.CRC32=74d3fda2
|
||||||
nbproject/build-impl.xml.stylesheet.CRC32=65b8de21
|
nbproject/build-impl.xml.stylesheet.CRC32=487672f9
|
||||||
|
@ -20,19 +20,22 @@ dist.dir=dist
|
|||||||
dist.jar=${dist.dir}/desktopgui.jar
|
dist.jar=${dist.dir}/desktopgui.jar
|
||||||
dist.javadoc.dir=${dist.dir}/javadoc
|
dist.javadoc.dir=${dist.dir}/javadoc
|
||||||
excludes=
|
excludes=
|
||||||
|
file.reference.appframework.jar=lib/appframework.jar
|
||||||
file.reference.i2p.jar=../../core/java/build/i2p.jar
|
file.reference.i2p.jar=../../core/java/build/i2p.jar
|
||||||
file.reference.router.jar=../../router/java/build/router.jar
|
file.reference.router.jar=../../router/java/build/router.jar
|
||||||
|
file.reference.swing-worker.jar=lib/swing-worker.jar
|
||||||
includes=**
|
includes=**
|
||||||
jar.compress=false
|
jar.compress=false
|
||||||
javac.classpath=\
|
javac.classpath=\
|
||||||
${file.reference.router.jar}:\
|
${file.reference.router.jar}:\
|
||||||
${file.reference.i2p.jar}:\
|
${file.reference.appframework.jar}:\
|
||||||
${libs.swing-app-framework.classpath}
|
${file.reference.swing-worker.jar}:\
|
||||||
|
${file.reference.i2p.jar}
|
||||||
# Space-separated list of extra javac options
|
# Space-separated list of extra javac options
|
||||||
javac.compilerargs=
|
javac.compilerargs=
|
||||||
javac.deprecation=false
|
javac.deprecation=false
|
||||||
javac.source=1.5
|
javac.source=1.6
|
||||||
javac.target=1.5
|
javac.target=1.6
|
||||||
javac.test.classpath=\
|
javac.test.classpath=\
|
||||||
${javac.classpath}:\
|
${javac.classpath}:\
|
||||||
${build.classes.dir}:\
|
${build.classes.dir}:\
|
||||||
@ -49,6 +52,10 @@ javadoc.splitindex=true
|
|||||||
javadoc.use=true
|
javadoc.use=true
|
||||||
javadoc.version=false
|
javadoc.version=false
|
||||||
javadoc.windowtitle=
|
javadoc.windowtitle=
|
||||||
|
jnlp.codebase.type=local
|
||||||
|
jnlp.enabled=false
|
||||||
|
jnlp.offline-allowed=false
|
||||||
|
jnlp.signed=false
|
||||||
main.class=desktopgui.Main
|
main.class=desktopgui.Main
|
||||||
manifest.file=manifest.mf
|
manifest.file=manifest.mf
|
||||||
meta.inf.dir=${src.dir}/META-INF
|
meta.inf.dir=${src.dir}/META-INF
|
||||||
|
@ -7,5 +7,5 @@ Application.vendor = I2P Developers
|
|||||||
Application.homepage = http://www.i2p2.de
|
Application.homepage = http://www.i2p2.de
|
||||||
Application.description = An anonymous communication network.
|
Application.description = An anonymous communication network.
|
||||||
Application.vendorId = I2P
|
Application.vendorId = I2P
|
||||||
Application.id = ${Application.name}
|
Application.id = desktopgui
|
||||||
Application.lookAndFeel = system
|
Application.lookAndFeel = system
|
||||||
|
Reference in New Issue
Block a user