[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help getting missing classes found by prottest



Hi again,

I simply removed -init-macrodef-copylibs from the build target which was
probably a bit to dumb as a solution.  Now the classes ar built but it
seems copylibs is the part of netbeans that creates the JAR.  I'm sure
some Java programmer will give a hint how to replace it for the Debian
package ...

Thanks a lot

       Andreas.

On Sat, Oct 17, 2015 at 12:21:03AM +0200, Andreas Tille wrote:
> Hi
> 
> On Fri, Oct 16, 2015 at 11:32:18PM +0200, Emmanuel Bourg wrote:
> > Le 16/10/2015 23:26, Markus Koschany a écrit :
> > 
> > > P.S.: Please note that the swing-worker.jar is still imported from the
> > > libs directory. I don't know if this one is already packaged for Debian.
> > 
> > I don't think we have it, but SwingWorker is a standard class of the JDK
> > since Java 6, it should be easy to adapt the code to use it.
> 
> Thanks to Markus's patch I was able to build the package.  However,
> after now removing all *.jar files I have a new problem:
> 
> ...
> -do-jar-with-libraries:
>     
> BUILD FAILED
> /build/prottest-3.4+dfsg/buildconf/build-impl.xml:595: The following error occurred while executing this line:
> /build/prottest-3.4+dfsg/buildconf/build-impl.xml:429: taskdef class org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs cannot be found
>  using the classloader AntClassLoader[]
> 
> Total time: 4 seconds
> dh_auto_build: ant returned exit code 1
> ...
> 
> 
> How can I resolve this netbeans dependency?
> 
> Moreover I have no idea how to tweak
> 
>     src/main/resources/runProtTestHPC.sh
> 
> which I copied to debian/bin to properly use mpj.  It is referencing a
> mpjrun.sh script that was part of the (now also removed code copy of mpj)
> which in turn uses a starter.jar that is not part of the libmpj-java
> package:
> 
>     java -jar $MPJ_HOME/lib/starter.jar "$@"
> 
> I wonder how to easily use prottest mpi features (once the build problem
> might be solved).
> 
> Thanks for any help
> 
>     Andreas.
> 
> -- 
> http://fam-tille.de
> 
> _______________________________________________
> Debian-med-packaging mailing list
> Debian-med-packaging@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-packaging
> 

-- 
http://fam-tille.de
--- a/buildconf/build-impl.xml
+++ b/buildconf/build-impl.xml
@@ -577,26 +577,15 @@ is divided into following sections:
         </pathconvert>
         <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
     </target>
-    <target depends="init,compile,-pre-pre-jar,-pre-jar,-init-macrodef-copylibs" if="do.archive+manifest.available+main.class+mkdist.available+splashscreen.available" name="-do-jar-with-libraries-and-splashscreen">
+    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available+main.class+mkdist.available+splashscreen.available" name="-do-jar-with-libraries-and-splashscreen">
         <basename file="${application.splash}" property="splashscreen.basename"/>
         <mkdir dir="${build.classes.dir}/META-INF"/>
         <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
-        <j2seproject3:copylibs>
-            <customize>
-                <attribute name="Main-Class" value="${main.class}"/>
-                <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
-            </customize>
-        </j2seproject3:copylibs>
         <echo>To run this application from the command line without Ant, try:</echo>
         <property location="${dist.jar}" name="dist.jar.resolved"/>
         <echo>java -jar "${dist.jar.resolved}"</echo>
     </target>
-    <target depends="init,compile,-pre-pre-jar,-pre-jar,-init-macrodef-copylibs" if="do.archive+manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries" unless="splashscreen.available">
-        <j2seproject3:copylibs>
-            <customize>
-                <attribute name="Main-Class" value="${main.class}"/>
-            </customize>
-        </j2seproject3:copylibs>
+    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries" unless="splashscreen.available">
         <echo>To run this application from the command line without Ant, try:</echo>
         <property location="${dist.jar}" name="dist.jar.resolved"/>
         <echo>java -jar "${dist.jar.resolved}"</echo>

Reply to: