I can build the sample OK using this ant script, but "ant run" doesn't work.
I'm using the pre-built distribution that Ant posted to
  http://people.apache.org/~antelder/tuscany/latest/

The problem is with the very long Class-Path attribute in MANIFEST.MF
of tuscany-sca-manifest.jar.  In Ant's pre-built distribution, this line
is chopped up into small fixed-size chunks, producing the following error:

 E:\tuscanybin1\tuscany-sca-1.0-incubating-SNAPSHOT\samples\calculator>ant run
 Buildfile: build.xml

 init:

 compile:

 run:
      [java] Failed to load Main-Class manifest attribute from
      [java] 
E:\tuscanybin1\tuscany-sca-1.0-incubating-SNAPSHOT\lib\tuscany-sca-manifest.jar
      [java] Java Result: 1

I tried editing the MANIFEST.MF file to put all the Class-Path information
in a single line of 3861 characters.  This produced the following error:

 E:\tuscanybin1\tuscany-sca-1.0-incubating-SNAPSHOT\samples\calculator>ant run
 Buildfile: build.xml

 init:

 compile:

 run:
      [java] java.io.IOException: line too long
      [java]     at java.util.jar.Attributes.read(Attributes.java:362)
      [java]     at java.util.jar.Manifest.read(Manifest.java:167)
      [java]     at java.util.jar.Manifest.<init>(Manifest.java:52)
      [java]     at 
java.util.jar.JarFile.getManifestFromReference(JarFile.java:158)
      [java]     at java.util.jar.JarFile.getManifest(JarFile.java:145)
      [java] Exception in thread "main"
      [java] Java Result: 1

  Simon

ant elder wrote:

On 5/2/07, Simon Laws <[EMAIL PROTECTED]> wrote:


On 5/2/07, Simon Nash <[EMAIL PROTECTED]> wrote:
>
> I saw the following discussion in Monday's IRC chat log.  (I couldn't
> attend the chat because I was on a plane.)
>
> > [12:37] <ant_> oh, so with the samples again, I guess we need Ant
build
> scripts
> > [12:37] <ant_> lresende, it does right now and i think thats good to
do
> > [12:38] <jsdelfino> yes, +1 for the sample bins
> > [12:38] <lresende> yes, i like that, but haven't looked into your
distro
> strawman yet
> > [12:38] <slaws> ant_  - a non maven build solution for samples would
be
> useful
> > [12:38] <ant_> do we want mvn as well or just Ant?
> > [12:39] <jsdelfino> what's the work required to have a mvn build for
the
> samples? don't we already have bit?
> > [12:39] <jsdelfino> I think we could keep the mvn build, but document
> the ant one
> > [12:40] <slaws> if we have two we need to decide whether we maintain
two
> or just fix up ant for releases
> > [12:40] <ant_> ok. i guess we just need to make sure the sample mvn's
> work in the build distro with an empty local repo
> > [12:41] <ant_> would anyone like to volunteer to create an Ant script
> for one of the samples?
> > [12:42] <jsdelfino> anyone? it shouldn't be too hard, we even had this
> in M1...
> > [12:42] <slaws> didn't someone already create some for a previous
> release that we can lift
> > [12:42] <halehM> Maybe someone on the mailing  list who is not on the
> IRC?
> > [12:42] <halehM> post on mailing list?
> > [12:43] <ant_> ok, lets skip that one for now then
>
> I did some work on this for M2 but nothing was included in the
> release because of disagreements about some aspects of my proposal.
> The two main issues were how webapps get built and how dependencies
> are resolved.  I'll look at this again based on the currently proposed
> release packaging.
>
>    Simon
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> Hi Simon, I checked a version of the calculator build.xml into the trunk
and have been discussing some of the dependency issues here (
http://www.mail-archive.com/[email protected]/msg17320.html)

Simon


Just fyi, i've tried this calculator Ant build and it seems to work fine for
me.

  ...ant




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

Reply via email to