|
20 | 20 | <target name="compile" depends="init" description="compile the source"> |
21 | 21 | <javac includeantruntime="false" srcdir="${src}" destdir="${build}" debug="true" debuglevel="lines,vars,source"> |
22 | 22 | <classpath> |
23 | | - <fileset dir="lib"> |
| 23 | + <fileset dir="lib"> |
24 | 24 | <include name="**/*.jar" /> |
25 | 25 | </fileset> |
26 | 26 | </classpath> |
|
35 | 35 | <manifestclasspath property="manifest_cp" jarfile="myjar.jar"> |
36 | 36 | <classpath refid="dep.runtime" /> |
37 | 37 | </manifestclasspath> |
38 | | - <jar jarfile="${dist}/IPFS.jar" basedir="${build}"> |
| 38 | + <jar jarfile="${dist}/ipfs.jar" basedir="${build}"> |
39 | 39 | <manifest> |
40 | | - <attribute name="Class-Path" value="${manifest_cp}"/> |
| 40 | + <attribute name="Class-Path" value="${manifest_cp}"/> |
| 41 | + <attribute name="Implementation-Vendor" value="io.ipfs"/> |
| 42 | + <attribute name="Implementation-Title" value="multiaddr"/> |
| 43 | + <attribute name="Implementation-Version" value="1.0.0"/> |
41 | 44 | </manifest> |
42 | 45 | </jar> |
43 | | - <copy todir="."> |
44 | | - <fileset file="${dist}/IPFS.jar"/> |
45 | | - </copy> |
46 | 46 | </target> |
47 | 47 |
|
48 | | - |
49 | 48 | <target name="test" depends="compile,dist"> |
50 | 49 | <junit printsummary="yes" fork="true" haltonfailure="yes"> |
51 | 50 | <jvmarg value="-Xmx1g"/> |
52 | 51 | <classpath> |
53 | 52 | <pathelement location="lib/junit-4.11.jar" /> |
54 | 53 | <pathelement location="lib/hamcrest-core-1.3.jar" /> |
55 | | - <pathelement location="lib/Multihash.jar" /> |
56 | | - <pathelement location="lib/Multiaddr.jar" /> |
57 | | - <pathelement location="IPFS.jar" /> |
| 54 | + <pathelement location="lib/multihash.jar" /> |
| 55 | + <pathelement location="lib/multiaddr.jar" /> |
| 56 | + <pathelement location="dist/ipfs.jar" /> |
58 | 57 | </classpath> |
59 | | - <test name="org.ipfs.api.APITests" haltonfailure="yes"> |
| 58 | + <test name="org.ipfs.api.APITest" haltonfailure="yes"> |
60 | 59 | <formatter type="plain"/> |
61 | 60 | <formatter type="xml"/> |
62 | 61 | </test> |
63 | | - </junit> |
| 62 | + </junit> |
64 | 63 | </target> |
65 | 64 |
|
66 | 65 | <target name="clean" description="clean up"> |
|
0 commit comments