I have resolved the problems I was having with tuscany-sca-manifest.jar.
It turns out that the strange manifest formatting that I thought was a bug
is actually correct (line truncation/continuation at 70 characters).

  Simon

Simon Nash wrote:

Simon Laws wrote:

Simon, I have some strange things going on with my distribution build

which is affecting the way the manifests are build. Am investigating this
now but have to drop off the network til the morning.

Also, are you also building ant scripts also? I'm going to try and make a
few more so let me know which ones you are doing if you are doing some.

 >
In the ant scripts I made for M2, I used a slightly different pattern
for the "compile" step that eliminates the two <copy> steps that you
are using.  This pattern uses <fileset> and <metainf> elements within
the <jar> task.  I have tested this pattern within your script and it
works fine.  I suggest that you use this pattern in the new scripts
that you are making.  Here's an example of this pattern:

    <target name="compile" depends="init">
        <javac srcdir="src/main/java"
               destdir="target/classes"
               debug="on"
               source="1.5"
               target="1.5">
            <classpath>
<pathelement location="../../lib/tuscany-sca-all-1.0-incubating-SNAPSHOT.jar"/> <pathelement location="../../lib/sca-api-1.0-incubating-SNAPSHOT.jar"/>
            </classpath>
        </javac>
<jar destfile="target/sample-calculator.jar" basedir="target/classes">
            <fileset dir="src/main/resources"/>
            <metainf dir='.' includes="LICENSE.txt,NOTICE.txt"/>
            <manifest>
<attribute name="Main-Class" value="calculator.CalculatorClient"/>
            </manifest>
        </jar>
    </target>

Note the different <classpath> from the one that you used.  I could not
get tuscany-sca-manifest.jar to work for me either at compile time or
at runtime.  I may have been doing something wrong, but I'm not sure what.

For the <run> target, because of my problems with tuscany-sca-manifest.jar,
I needed to use the following:

    <target name="run" depends="compile">
        <java classname="calculator.CalculatorClient"
              fork="true">
            <classpath>
                <pathelement location="target/sample-calculator.jar"/>
<pathelement location="../../lib/tuscany-sca-all-1.0-incubating-SNAPSHOT.jar"/> <pathelement location="../../lib/sca-api-1.0-incubating-SNAPSHOT.jar"/>
                <pathelement location="../../lib/axiom-impl-1.2.4.jar"/>
                <pathelement location="../../lib/jetty-util-6.1.0.jar"/>
                <pathelement location="../../lib/commons-logging-1.1.jar"/>
<pathelement location="../../lib/sdo-api-r2.1-1.0-incubating-SNAPSHOT.jar"/>
                <pathelement location="../../lib/jaxb-api-2.0.jar"/>
                <pathelement location="../../lib/XmlSchema-1.3.1.jar"/>
                <pathelement location="../../lib/jetty-6.1.0.jar"/>
                <pathelement location="../../lib/catalina-6.0.10.jar"/>
                <pathelement location="../../lib/wsdl4j-1.6.2.jar"/>
                <pathelement location="../../lib/stax-api-1.0.1.jar"/>
                <pathelement location="../../lib/axis2-kernel-1.2.jar"/>
                <pathelement location="../../lib/wstx-asl-3.2.0.jar"/>
                <pathelement location="../../lib/servlet-api-2.5.jar"/>
                <pathelement location="../../lib/coyote-6.0.10.jar"/>
                <pathelement location="../../lib/juli-6.0.10.jar"/>
                <pathelement location="../../lib/axiom-api-1.2.4.jar"/>
            </classpath>
        </java>
    </target>

I'd like to resolve the problems with tuscany-sca-manifest.jar before
I make any more of these.  The above code doesn't feel good to me.

  Simon



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to