removed old ant script
added launch configs git-svn-id: http://svn.code.sf.net/p/upnp-portmapper/code/branches/gradle@123 2bd42da9-18a5-434a-ad8e-d1ed5d6a128dmaster
parent
ba725e51f1
commit
002c96d1b4
|
@ -6,7 +6,7 @@
|
|||
<classpathentry kind="src" path="test"/>
|
||||
<classpathentry kind="con" path="GROOVY_DSL_SUPPORT"/>
|
||||
<classpathentry kind="con" path="GROOVY_SUPPORT"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
|
||||
<classpathentry exported="true" kind="con" path="org.springsource.ide.eclipse.gradle.classpathcontainer"/>
|
||||
<classpathentry kind="con" path="org.springsource.ide.eclipse.gradle.dsld.classpathcontainer"/>
|
||||
<classpathentry kind="output" path="target/classes"/>
|
||||
|
|
|
@ -100,7 +100,6 @@ org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
|
|||
org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
|
||||
org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false
|
||||
org.eclipse.jdt.core.formatter.indentation.size=4
|
||||
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation=insert
|
||||
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert
|
||||
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert
|
||||
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
|
||||
|
|
127
build.xml
127
build.xml
|
@ -1,127 +0,0 @@
|
|||
<project name="PortMapper" basedir="." default="jar">
|
||||
|
||||
<property name="project.dir" location="./" />
|
||||
<property name="src.dir" location="${project.dir}/src" />
|
||||
<property name="weupnp.src.dir" location="${project.dir}/src_weupnp" />
|
||||
<property name="build.dir" location="${project.dir}/build" />
|
||||
<property name="classes.dir" location="${build.dir}/classes" />
|
||||
<property name="build.resources.dir" location="${classes.dir}/org/chris/portmapper/resources/" />
|
||||
<property name="src.resources.dir" location="${src.dir}/org/chris/portmapper/resources/" />
|
||||
<property name="jar.dir" location="${build.dir}/jar" />
|
||||
|
||||
<property name="main-class" value="org.chris.portmapper.PortMapperStarter" />
|
||||
|
||||
<property name="lib.dir" location="${project.dir}/lib" />
|
||||
<property name="svnversion.binary" location="/Users/chris/Applications/brew/bin/svnversion" />
|
||||
|
||||
<path id="classpath" description="The JARs needed for compiling">
|
||||
<fileset dir="${lib.dir}" includes="**/*.jar" />
|
||||
</path>
|
||||
|
||||
<target name="clean" description="Create the build directorys and remove their content">
|
||||
<mkdir dir="${jar.dir}" />
|
||||
<mkdir dir="${classes.dir}" />
|
||||
<delete includeEmptyDirs="true">
|
||||
<fileset dir="${classes.dir}" includes="**/*" defaultexcludes="no" />
|
||||
<fileset dir="${jar.dir}" includes="**/*" defaultexcludes="no" />
|
||||
</delete>
|
||||
</target>
|
||||
|
||||
<target name="get_version_number" description="Prompt the user for the version number">
|
||||
<input message="Enter version number of new build." addproperty="version.number" />
|
||||
<exec executable="${svnversion.binary}" outputproperty="svn.revision.number" failonerror="true">
|
||||
<arg line="-n" />
|
||||
<arg path="${project.dir}" />
|
||||
</exec>
|
||||
<echo>Version number: ${version.number}</echo>
|
||||
<echo>SNV revision number: ${svn.revision.number}</echo>
|
||||
</target>
|
||||
|
||||
<target name="compile" depends="clean" description="Compile the Java source files">
|
||||
<javac srcdir="${weupnp.src.dir}" destdir="${classes.dir}" classpathref="classpath" debug="true" target="1.5" source="1.5" includeantruntime="false" />
|
||||
<javac srcdir="${src.dir}" destdir="${classes.dir}" classpathref="classpath" debug="true" target="1.5" source="1.5" includeantruntime="false" />
|
||||
<copy todir="${classes.dir}">
|
||||
<fileset dir="${src.dir}" excludes="**/*.java" />
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<target name="prepare_language_files" depends="get_version_number" description="Convert the encoding of the language property files and copy them to the build dir">
|
||||
<exec executable="native2ascii" failonerror="true">
|
||||
<arg value="-encoding" />
|
||||
<arg value="ISO-8859-1" />
|
||||
<arg file="${src.resources.dir}/PortMapperApp_de.properties" />
|
||||
<arg file="${build.resources.dir}/PortMapperApp_de.properties" />
|
||||
</exec>
|
||||
|
||||
<exec executable="native2ascii" failonerror="true">
|
||||
<arg value="-encoding" />
|
||||
<arg value="ISO-8859-1" />
|
||||
<arg file="${src.resources.dir}/ConnectTask_de.properties" />
|
||||
<arg file="${build.resources.dir}/ConnectTask_de.properties" />
|
||||
</exec>
|
||||
|
||||
<exec executable="native2ascii" failonerror="true">
|
||||
<arg value="-encoding" />
|
||||
<arg value="ISO-8859-1" />
|
||||
<arg file="${src.resources.dir}/PortMapperApp_nb.properties" />
|
||||
<arg file="${build.resources.dir}/PortMapperApp_nb.properties" />
|
||||
</exec>
|
||||
|
||||
<exec executable="native2ascii" failonerror="true">
|
||||
<arg value="-encoding" />
|
||||
<arg value="ISO-8859-1" />
|
||||
<arg file="${src.resources.dir}/ConnectTask_nb.properties" />
|
||||
<arg file="${build.resources.dir}/ConnectTask_nb.properties" />
|
||||
</exec>
|
||||
|
||||
<copy file="${build.resources.dir}/PortMapperApp_en.properties" tofile="${build.resources.dir}/PortMapperApp.properties" />
|
||||
<copy file="${build.resources.dir}/ConnectTask_en.properties" tofile="${build.resources.dir}/ConnectTask.properties" />
|
||||
<replace casesensitive="false" dir="${classes.dir}" includes="**/*.properties" token="@@VERSION_NUMBER@@" value="${version.number}" />
|
||||
<replace casesensitive="false" dir="${classes.dir}" includes="**/*.properties" token="@@SVN_REVISION_NUMBER@@" value="${svn.revision.number}" />
|
||||
</target>
|
||||
|
||||
<target name="jar" depends="clean,get_version_number,compile,prepare_language_files" description="Create a JAR file containing all necessary libraries">
|
||||
<mkdir dir="${jar.dir}" />
|
||||
<jar destfile="${jar.dir}/${ant.project.name}-${version.number}.jar" duplicate="fail" update="false">
|
||||
<manifest>
|
||||
<attribute name="Main-Class" value="${main-class}" />
|
||||
</manifest>
|
||||
|
||||
<zipfileset dir="${classes.dir}" />
|
||||
|
||||
<zipfileset src="${lib.dir}/BrowserLauncher2-1_3.jar" excludes="META-INF/*" />
|
||||
<zipfileset src="${lib.dir}/AppFramework-1.03.jar" excludes="META-INF/*" />
|
||||
<zipfileset src="${lib.dir}/commons-jxpath-1.1.jar" excludes="META-INF/*" />
|
||||
<zipfileset src="${lib.dir}/commons-logging.jar" excludes="META-INF/*" />
|
||||
<zipfileset src="${lib.dir}/log4j-1.2.15.jar" excludes="META-INF/*" />
|
||||
<zipfileset src="${lib.dir}/miglayout-3.7.2.jar" excludes="META-INF/*" />
|
||||
<zipfileset src="${lib.dir}/sbbi-upnplib-1.0.4.jar" excludes="META-INF/*" />
|
||||
<zipfileset src="${lib.dir}/swing-worker.jar" excludes="META-INF/*" />
|
||||
<zipfileset src="${lib.dir}/commons-cli-1.2.jar" excludes="META-INF/*" />
|
||||
</jar>
|
||||
<delete dir="${classes.dir}" />
|
||||
</target>
|
||||
|
||||
<target name="run" depends="jar" description="Run PortMapper">
|
||||
<java jar="${jar.dir}/${ant.project.name}-${version.number}.jar" fork="true" />
|
||||
</target>
|
||||
|
||||
<!-- Applet targets -->
|
||||
|
||||
<target name="build_applet" depends="compile" description="Build the JAR containing the applet">
|
||||
<mkdir dir="${jar.dir}" />
|
||||
<jar destfile="${jar.dir}/PortMapperApplet.jar" duplicate="fail" update="false">
|
||||
<zipfileset dir="${classes.dir}" excludes="log4j.properties" />
|
||||
|
||||
<zipfileset src="${lib.dir}/commons-logging.jar" excludes="META-INF/*" />
|
||||
<zipfileset src="${lib.dir}/sbbi-upnplib-1.0.4.jar" excludes="META-INF/*" />
|
||||
</jar>
|
||||
</target>
|
||||
|
||||
<target name="build_signed_applet" depends="build_applet" description="Sign the applet JAR">
|
||||
<input addproperty="keystore.alias" message="Please enter the alias of the key:" />
|
||||
<input addproperty="keystore.passphrase" message="Please enter the password of the keystore:" />
|
||||
<signjar alias="${keystore.alias}" jar="${jar.dir}/PortMapperApplet.jar" storepass="${keystore.passphrase}" verbose="true" />
|
||||
</target>
|
||||
|
||||
</project>
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<launchConfiguration type="org.springsource.ide.eclipse.gradle.launch">
|
||||
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
|
||||
<listEntry value="org.eclipse.ui.externaltools.launchGroup"/>
|
||||
</listAttribute>
|
||||
<stringAttribute key="org.springsource.ide.eclipse.gradle.launch.PROJECT" value="PortMapper"/>
|
||||
<listAttribute key="org.springsource.ide.eclipse.gradle.launch.TASKLIST">
|
||||
<listEntry value=":clean"/>
|
||||
<listEntry value=":test"/>
|
||||
<listEntry value=":jar"/>
|
||||
</listAttribute>
|
||||
</launchConfiguration>
|
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
|
||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
|
||||
<listEntry value="/PortMapper/src/org/chris/portmapper/PortMapperStarter.java"/>
|
||||
</listAttribute>
|
||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
|
||||
<listEntry value="1"/>
|
||||
</listAttribute>
|
||||
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
|
||||
<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
|
||||
</listAttribute>
|
||||
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.chris.portmapper.PortMapperStarter"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="PortMapper"/>
|
||||
</launchConfiguration>
|
Loading…
Reference in New Issue