diff --git a/build.xml b/build.xml deleted file mode 100644 index 1c39221..0000000 --- a/build.xml +++ /dev/null @@ -1,111 +0,0 @@ -<?xml version="1.0" encoding="utf-8" ?> -<!DOCTYPE configuration> -<project name="osmCoverage" default="all" basedir="."> - <!-- - ソース以外にビルドに必要なライブラリ - javalib/hayashi_0225.jar - javalib/postgresql-9.4.1212.jar - javalib/hayashi_0225.jar - ../jar-in-jar-loader.zip - --> - <property name="src" value="${basedir}/src" /> - <property name="classes" value="${basedir}/classes" /> - <property name="dest" value="${basedir}/bin"></property> - <property name="javalib" value="lib"></property> - <property name="appname" value="osmCoverage"></property> - <property name="version" value=""></property> - <property name="postgres" value="postgresql-9.4.1212.jar"></property> - <property name="hsql" value="hsqldb_2.2.9.jar"></property> - <property name="hayashilib" value="hayashi_0225.jar"></property> - - - <!-- - [STEP 1] クリーンナップ - --> - <target name="clean" description="前回作成したclassファイルを削除する"> - <mkdir dir="${classes}"/> - <delete> - <fileset dir="${classes}" includes="**/*.class" /> - <fileset dir="${src}" includes="**/*.class" /> - </delete> - <delete dir="${dest}" /> - </target> - - <!-- - [STEP 2] コンパイル - --> - <target name="compile_src" depends="clean" description="コンパイル src"> - <javac target="1.8" source="1.8" optimize="off" debug="on" verbose="false" srcdir="${src}" destdir="${classes}" encoding="UTF-8" includeantruntime="false"> - <classpath> - <pathelement path="${src}"/> - <fileset dir="${javalib}"> - <include name="*.jar" /> - </fileset> - </classpath> - </javac> - </target> - - <!-- - [STEP 3] リンク - --> - <target name="create_run_jar" depends="compile_src" description="'${appname}.jar'を作成する"> - <tstamp> - <format property="ts" pattern="yyyy/MM/dd-HH:mm:ss-z"/> - </tstamp> - <jar destfile="${basedir}/${appname}.jar"> - <fileset dir="${src}" includes="**/*.png" /> - <fileset dir="${src}" includes="**/*.gif" /> - <fileset dir="${src}" includes="**/*.jpg" /> - - <manifest> - <attribute name="Main-Class" value="org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader"/> - <attribute name="Rsrc-Main-Class" value="Demo"/> - <attribute name="Class-Path" value="."/> - <attribute name="Rsrc-Class-Path" value="./ ../ ${javalib}/${hayashilib} ${javalib}/${dblib}"/> - <attribute name="Implementation-Title" value="${appname}"/> - <attribute name="Implementation-Version" value="${appname}"/> - <attribute name="Implementation-Vendor" value="hayashi"/> - <attribute name="Build-Id" value="${ts} (${user.name} [${os.name} ${os.version} ${os.arch}])"/> - </manifest> - <!-- zipfileset src="${javalib}/jar-in-jar-loader.zip"/ --> - <!-- zipfileset dir="${javalib}" includes="${hayashilib}"/ --> - <!-- zipfileset dir="${javalib}" includes="${dblib}"/ --> - <!-- zipfileset dir="${javalib}" includes="hsqldb_2.2.9.jar"/ --> - <zipfileset dir="${classes}"/> - <zipfileset dir="${src}"/> - </jar> - </target> - - <!-- - [STEP 4] デプロイ - --> - <target name="deploy" depends="create_run_jar" description="'${appname}.jar'を作成する"> - <zip destfile="${appname}.zip"> - <fileset dir="${basedir}" includes="${appname}.jar"/> - <fileset dir="${javalib}"> - <include name="${hayashilib}"/> - <include name="${postgres}"/> - <include name="${hsql}"/> - </fileset> - <fileset dir="${src}" includes="*.bat"/> - <fileset dir="${src}" includes="*.sh"/> - <fileset dir="${src}" includes="*.properties"/> - <fileset dir="${src}" includes="*.sql"/> - </zip> - <copy todir="bin"> - <fileset dir="${basedir}" includes="${appname}.jar"/> - <fileset dir="${javalib}"> - <include name="${hayashilib}"/> - <include name="${postgres}"/> - <include name="${hsql}"/> - </fileset> - <fileset dir="${src}" includes="*.bat"/> - <fileset dir="${src}" includes="*.sh"/> - <fileset dir="${src}" includes="*.properties"/> - <fileset dir="${src}" includes="*.sql"/> - </copy> - </target> - - <target name="all" depends="deploy"></target> -</project> - diff --git a/manifest.mf b/manifest.mf deleted file mode 100644 index 328e8e5..0000000 --- a/manifest.mf +++ /dev/null @@ -1,3 +0,0 @@ -Manifest-Version: 1.0 -X-COMMENT: Main-Class will be added automatically by build - diff --git a/nbbuild.xml b/nbbuild.xml deleted file mode 100644 index b6c1178..0000000 --- a/nbbuild.xml +++ /dev/null @@ -1,73 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- You may freely edit this file. See commented blocks below for --> -<!-- some examples of how to customize the build. --> -<!-- (If you delete it and reopen the project it will be recreated.) --> -<!-- By default, only the Clean and Build commands use this build script. --> -<!-- Commands such as Run, Debug, and Test only use this build script if --> -<!-- the Compile on Save feature is turned off for the project. --> -<!-- You can turn off the Compile on Save (or Deploy on Save) setting --> -<!-- in the project's Project Properties dialog box.--> -<project name="osmCoverage" default="default" basedir="."> - <description>Builds, tests, and runs the project osmCoverage.</description> - <import file="nbproject/build-impl.xml"/> - <!-- - - There exist several targets which are by default empty and which can be - used for execution of your tasks. These targets are usually executed - before and after some main targets. They are: - - -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. - The targets of interest are: - - -init-macrodef-javac: defines macro for javac compilation - -init-macrodef-junit: defines macro for junit execution - -init-macrodef-debug: defines macro for class debugging - -init-macrodef-java: defines macro for class execution - -do-jar: JAR building - run: execution of project - -javadoc-build: Javadoc generation - test-report: JUnit report generation - - An example of overriding the target for project execution could look like this: - - <target name="run" depends="osmCoverage-impl.jar"> - <exec dir="bin" executable="launcher.exe"> - <arg file="${dist.jar}"/> - </exec> - </target> - - Notice that the overridden target depends on the jar target and not only on - the compile target as the regular run target does. Again, for a list of available - properties which you can use, check the target you are overriding in the - nbproject/build-impl.xml file. - - --> -</project>