You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by Thierry Kormann <Th...@sophia.inria.fr> on 2000/10/30 14:36:09 UTC

build.xml

Hi,

The current build.xml is not working and I
had to use the old one.

The build-dev.xml is not there anymore, why ?
I must now use java on the command line :(

The build.sh is not working...
Any comments ?

Is there a way to pass command line options
from ant to the java program ?

Thierry.

-- 
Thierry Kormann
email: Thierry.Kormann@sophia.inria.fr  http://www.inria.fr/koala/tkormann/
Koala/Dyade/Bull @ INRIA - Sophia Antipolis






Re: build.xml

Posted by Stephane Hillion <St...@sophia.inria.fr>.
Thomas E Deweese wrote:

>     A subprocess can't affect the parent process's environment (ie
> running ant can't change the EDITOR env var in the calling shell,
> unless you 'source ant').

>    Are you somehow doing your cvs commit through ant?

No.

>    I'm guessing there is something wrong in the way your shell is set
> up, or else there is a bug in the Kernel/shell.

Thierry and Vincent experienced the same problem. It looks like random
modifications. One time it even changed my PATH.
--
    Stephane.



Re: build.xml

Posted by Thomas E Deweese <th...@kodak.com>.
SH> Stefano Mazzocchi wrote:

>> Stephane Hillion wrote:
>> > Ant overwrites environment variables. Painful.
>> 
>> ??? what do you mean?

>>>>> "SH" == Stephane Hillion <St...@sophia.inria.fr> writes:

SH> My EDITOR environment variable is equal to 'xemacs' by default.
SH> After running ant, it is not defined anymore and I must type my
SH> commit messages with vi...

    A subprocess can't affect the parent process's environment (ie
running ant can't change the EDITOR env var in the calling shell,
unless you 'source ant').

    Are you somehow doing your cvs commit through ant?

    I'm guessing there is something wrong in the way your shell is set
up, or else there is a bug in the Kernel/shell.

Re: build.xml

Posted by Stephane Hillion <St...@sophia.inria.fr>.
Stefano Mazzocchi wrote:

> Stephane Hillion wrote:
> >
> > Thierry Kormann wrote:
> >
> > > The current build.xml is not working and I had to use the old one.
> >
> > Ant overwrites environment variables. Painful.
>
> ??? what do you mean?

My EDITOR environment variable is equal to 'xemacs' by default.
After running ant, it is not defined anymore and I must type my commit messages
with vi...

> > > The build-dev.xml is not there anymore, why ? I must now use java on the
> > > command line :(
> >
> > I'll add a 'svgviewer' command to the current build.xml.
>
> it's already there.

It seems that you forgot something... ;)
--
    Stephane.



Re: build.xml

Posted by Stefano Mazzocchi <st...@apache.org>.
Stephane Hillion wrote:
> 
> Thierry Kormann wrote:
> 
> > The current build.xml is not working and I had to use the old one.
> 
> Ant overwrites environment variables. Painful.

??? what do you mean?
 
> > The build-dev.xml is not there anymore, why ? I must now use java on the
> > command line :(
> 
> I'll add a 'svgviewer' command to the current build.xml.

it's already there.
 
> > The build.sh is not working...
> > Any comments ?
> 
> build.sh has malformed (dos-style) newlines.
> /bin/sh really don't like it - like me ;)

Sorry, my fault, I'll submit a UNIX version right now.
 
> > Is there a way to pass command line options
> > from ant to the java program ?
> 
> I agree. Something like 'ant command param*' could be very useful.

ant reacts on JVM parameters not system parameters.

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<st...@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------



Re: build.xml

Posted by Stephane Hillion <St...@sophia.inria.fr>.
Thierry Kormann wrote:

> The current build.xml is not working and I had to use the old one.

Ant overwrites environment variables. Painful.

> The build-dev.xml is not there anymore, why ? I must now use java on the
> command line :(

I'll add a 'svgviewer' command to the current build.xml.

> The build.sh is not working...
> Any comments ?

build.sh has malformed (dos-style) newlines.
/bin/sh really don't like it - like me ;)

> Is there a way to pass command line options
> from ant to the java program ?

I agree. Something like 'ant command param*' could be very useful.
--
    Stephane.



Re: build.xml

Posted by Stefano Mazzocchi <st...@apache.org>.
Thierry Kormann wrote:
> 
> Hi,
> 
> The current build.xml is not working and I
> had to use the old one.

This doesn't help me at all.
 
> The build-dev.xml is not there anymore, why ?

Because it's included in the new build.xml

> I must now use java on the command line :(

no, just do "build run"

> The build.sh is not working...
> Any comments ?
> 
> Is there a way to pass command line options
> from ant to the java program ?

yep

java -Dargument=value ...
 
> Thierry.
> 
> --
> Thierry Kormann
> email: Thierry.Kormann@sophia.inria.fr  http://www.inria.fr/koala/tkormann/
> Koala/Dyade/Bull @ INRIA - Sophia Antipolis
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-dev-help@xml.apache.org


-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<st...@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------