@@ -5,14 +5,17 @@ sshd server and use port forwarding, X11 forwarding, file transfer, etc., and
55you can integrate its functionality into your own Java programs
66 </description >
77 <!-- set global properties for this build -->
8- <property name =" version" location =" 0.1.40 " />
9- <property name =" src" location =" src" />
8+ <property name =" version" value =" 0.1.54 " />
9+ <property name =" src" location =" src/main/java/ " />
1010 <property name =" exasrc" location =" examples" />
1111 <property name =" build" location =" build" />
1212 <property name =" exabuild" location =" examples" />
1313 <property name =" dist" location =" dist" />
1414 <property name =" javadoc" location =" javadoc" />
1515 <property name =" javac.debug" value =" true" />
16+ <path id =" lib.path.ref" >
17+ <fileset dir =" lib" includes =" *.jar" />
18+ </path >
1619 <path id =" project.cp" >
1720 <pathelement location =" ${ build } " />
1821 </path >
@@ -27,22 +30,39 @@ you can integrate its functionality into your own Java programs
2730 description =" compile the source " >
2831 <!-- Compile the java code from ${src} into ${build} -->
2932 <available property =" jzlib.available"
30- classname =" com.jcraft.jzlib.ZStream" />
31- <javac srcdir =" ${ src } " destdir =" ${ build } " debug =" ${ javac.debug } " >
33+ classname =" com.jcraft.jzlib.ZStream" >
34+ <classpath refid =" lib.path.ref" />
35+ </available >
36+ <javac srcdir =" ${ src } "
37+ destdir =" ${ build } "
38+ target =" 1.4"
39+ source =" 1.4"
40+ debug =" ${ javac.debug } " >
41+ <classpath refid =" lib.path.ref" />
3242 <exclude name =" com/jcraft/jsch/jcraft/Compression.java"
3343 unless =" jzlib.available" />
3444 </javac >
3545 </target >
36- <target name =" run" depends =" compile" >
37- <java classname =" Login" classpathref =" project.cp" />
38- </target >
3946 <target name =" dist" depends =" compile"
4047 description =" generate the distribution" >
4148 <!-- Create the distribution directory -->
4249 <mkdir dir =" ${ dist } /lib" />
4350
44- <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
45- <jar jarfile =" ${ dist } /lib/jsch-${ DSTAMP } .jar" basedir =" ${ build } " />
51+ <!-- Put everything in ${build} into the MyProject-${version}.jar file -->
52+ <jar jarfile =" ${ dist } /lib/jsch-${ version } .jar" basedir =" ${ build } " >
53+ <!--
54+ <manifest>
55+ <attribute name="Bundle-ClassPath" value="."/>
56+ <attribute name="Bundle-Vendor" value="JCraft, Inc."/>
57+ <attribute name="Bundle-Name" value="com.jcraft.jsch"/>
58+ <attribute name="Bundle-ManifestVersion" value="2"/>
59+ <attribute name="Bundle-SymbolicName" value="com.jcraft.jsch"/>
60+ <attribute name="Bundle-Version" value="${version}"/>
61+ <attribute name="Export-Package" value='com.jcraft.jsch;version="${version}",com.jcraft.jsch.jce;version="${version}";x-internal:=true,com.jcraft.jsch.jcraft;version="${version}";x-internal:=true,com.jcraft.jsch.jgss;version="${version}";x-internal:=true'/>
62+ <attribute name="Import-Package" value="javax.crypto,javax.crypto.spec,javax.crypto.interfaces,org.ietf.jgss,com.jcraft.jzlib"/>
63+ </manifest>
64+ -->
65+ </jar >
4666 </target >
4767
4868 <target name =" examples"
0 commit comments