hayashi lib.
java
Revisión | 656a41f7f0983117ac9218afd02adbe043b5424f (tree) |
---|---|
Tiempo | 2019-08-18 13:14:19 |
Autor | ![]() |
Commiter | haya4 |
ignore build.*
@@ -1,9 +1,5 @@ | ||
1 | 1 | *.class |
2 | - | |
3 | - | |
4 | 2 | .project |
5 | - | |
6 | - | |
7 | 3 | .settings |
8 | 4 | classes |
9 | 5 | doc |
@@ -11,3 +7,4 @@ doc | ||
11 | 7 | /nbproject/ |
12 | 8 | /dist/ |
13 | 9 | /build/ |
10 | +build.* |
@@ -1,5 +0,0 @@ | ||
1 | -junit.jar = lib/junit.jar | |
2 | -xerces = lib/xercesImpl.jar | |
3 | -mail = lib/mail-1.4.jar | |
4 | -activation = lib/activation-1.1.jar | |
5 | -servlet = lib/servlet-api.jar |
@@ -1,115 +0,0 @@ | ||
1 | -<project name="hayashi" default="all" basedir="."> | |
2 | - <property name="src" value="${basedir}/src" /> | |
3 | - <property name="obj" value="${basedir}/build" /> | |
4 | - <property name="javadoc.dest" value="${basedir}/doc" /> | |
5 | - <property name="report" value="${basedir}/report" /> | |
6 | - <property file="build.properties" /> | |
7 | - <property name="appname" value="hayashi"></property> | |
8 | - <property name="version" value="0228"></property> | |
9 | - | |
10 | - <!--クラスパスを設定 --> | |
11 | - <path id="compile.classpath"> | |
12 | - <pathelement location="lib/junit-4.12.jar"/> | |
13 | - <pathelement location="lib/hamcrest-core-1.3"/> | |
14 | - <pathelement location="lib/xercesImpl.jar"/> | |
15 | - <pathelement location="lib/mail-1.4.jar"/> | |
16 | - <pathelement location="lib/activation-1.1.jar"/> | |
17 | - <pathelement location="lib/servlet-api.jar"/> | |
18 | - <pathelement path="${obj}"/> | |
19 | - </path> | |
20 | - | |
21 | - | |
22 | - <target name="init"> | |
23 | - <tstamp/> | |
24 | - </target> | |
25 | - | |
26 | - <target name="prepare" depends="init"> | |
27 | - <!-- | |
28 | - <mkdir dir="${doc}" /> | |
29 | - <mkdir dir="${report}"/> | |
30 | - --> | |
31 | - </target> | |
32 | - | |
33 | - <target name="clean" depends="prepare" description="Delete build directory"> | |
34 | - <delete> | |
35 | - <fileset dir="${src}" includes="**/*.class" /> | |
36 | - <fileset dir="${obj}" includes="**/*.class" /> | |
37 | - </delete> | |
38 | - </target> | |
39 | - | |
40 | - <!-- コンパイル --> | |
41 | - <target name="compile" description="Compile Java Sources"> | |
42 | - <javac srcdir="${src}" destdir="${obj}" encoding="UTF-8" | |
43 | - optimize="off" debug="on" verbose="false"> | |
44 | - <include name="**/*.java" /> | |
45 | - <classpath refid="compile.classpath"/> | |
46 | - </javac> | |
47 | - </target> | |
48 | - | |
49 | - <!-- | |
50 | - Javadoc作成 | |
51 | - 実行させるには、PATHにJDKの「JAVA_HOME/bin」を追加する必要がある。 | |
52 | - --> | |
53 | - <target name="javadoc" depends="compile" description="Create Javadoc API documentation"> | |
54 | - <mkdir dir="${javadoc.dest}/api" /> | |
55 | - <javadoc | |
56 | - packagenames="*" | |
57 | - encoding="UTF-8" | |
58 | - charset="UTF-8" | |
59 | - sourcepath="${src}" | |
60 | - destdir="${javadoc.dest}/api" > | |
61 | - <link href="http://java.sun.com/j2se/1.5.0/ja/docs/ja/api/" /> | |
62 | - <link href="http://java.sun.com/products/javamail/javadocs/" /> | |
63 | - <classpath refid="compile.classpath" /> | |
64 | - </javadoc> | |
65 | - </target> | |
66 | - | |
67 | - <!-- Jarアーカイバの作成 --> | |
68 | - <target name="makejar" depends="compile" description="make hayashi.jar"> | |
69 | - <delete file="${appname}_${version}.jar"/> | |
70 | - <tstamp> | |
71 | - <format property="ts" pattern="yyyy/MM/dd-HH:mm:ss-z"/> | |
72 | - </tstamp> | |
73 | - <jar destfile="${appname}_${version}.jar"> | |
74 | - <fileset file="README.txt"/> | |
75 | - <fileset dir="${src}" includes="**/*.java" /> | |
76 | - <fileset dir="${obj}" includes="**/*.class,**/*.java" /> | |
77 | - <fileset dir="${javadoc.dest}" includes="**/*.*"/> | |
78 | - <manifest> | |
79 | - <attribute name="Implementation-Title" value="${appname}"/> | |
80 | - <attribute name="Implementation-Version" value="hayashi lib ${version}"/> | |
81 | - <attribute name="Implementation-Vendor" value="Yuu Hayashi."/> | |
82 | - <attribute name="Build-Id" value="${ts} (${user.name} [${os.name} ${os.version} ${os.arch}])"/> | |
83 | - </manifest> | |
84 | - </jar> | |
85 | - </target> | |
86 | - | |
87 | - <target name="test" depends="compile" description="Run JUnit"> | |
88 | - <junit printsummary="yes"> | |
89 | - <classpath refid="compile.classpath"/> | |
90 | - <test name="util.money.MoneyTest"/> | |
91 | - </junit> | |
92 | - </target> | |
93 | - | |
94 | - <target name="report" depends="compile" description="Report Test Results"> | |
95 | - <junit printsummary="yes"> | |
96 | - <classpath refid="compile.classpath"/> | |
97 | - <formatter type="xml"/> | |
98 | - <batchtest fork="yes" todir="${report}"> | |
99 | - <fileset dir="${src}"> | |
100 | - <include name="**/*Test.java"/> | |
101 | - </fileset> | |
102 | - </batchtest> | |
103 | - </junit> | |
104 | - <junitreport todir="${report}"> | |
105 | - <fileset dir="${report}"> | |
106 | - <include name="TEST-*.xml"/> | |
107 | - </fileset> | |
108 | - <report format="frames" todir="${report}/html"/> | |
109 | - </junitreport> | |
110 | - </target> | |
111 | - | |
112 | - <target name="all" depends="makejar" description="Clean build directory, then compile, and JavaDoc"> | |
113 | - </target> | |
114 | - | |
115 | -</project> |