Re: question for usage in

2007-05-16 Thread Jay Dickon Glanville

Any suggestions?

Thanks

On 5/14/07, Jay Dickon Glanville <[EMAIL PROTECTED]> wrote:

Hello again,

I have a situation where many java files are being created from a
single xml file.  I don't want this to be done if the java files are
up to date.

Therefore, I'm trying to use the  task to generate a
property only if java file creation is necessary.  The problem I'm
having is that all the examples of the  task and it's
 subtasks deal with the output being a single file.

How do I write a  to where the target is multiple files?

For example

  

  

So, what type of mapper do I need to map a single source file to
multiple target files?

--
Jay Dickon Glanville




--
Jay Dickon Glanville

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



RE: Process Fork Failed

2007-05-16 Thread Sean Tiley
After looking more closely at the output, I noticed the command ant was
trying to execute seemed to be truncated after a certain number of
characters 

(notice the last commons-email-1.0.ja- missing a character and there
should have been additional jar files after that as well)

 

So I removed some un-necessary jars from the test-path and it is all
working again.

 

io.IOException: CreateProcess: C:\ibm.jdk.1.4\jre\bin\java.exe -Xmx256M
-classpath C:\build\lib\Libraries\Tidy.jar;C:\sean\

source_head\build\lib\Libraries\activation.jar;C:\build\lib\Libraries\an
tlr-2.7.6rc1.jar;C:\build\lib

aries\asm-attrs.jar;C:\build\lib\Libraries\asm.jar;C:\build\lib\Librarie
s\c3p0-0.9.0.jar;C:\sean\afsc

ce_head\build\lib\Libraries\catalina-ant.jar;C:\build\lib\Libraries\cgli
b-2.1.3.jar;C:\build\lib\Libr

\commons-beanutils-1.7.0.jar;C:\build\lib\Libraries\commons-codec.jar;C:
\build\lib\Libraries\commons-

ctions-3.2.jar;C:\build\lib\Libraries\commons-configuration-1.2.jar;C:\b
uild\lib\Libraries\commons-db

2.1.jar;C:\build\lib\Libraries\commons-digester.jar;C:\build\lib\Librari
es\commons-email-1.0.ja

   at java.lang.Win32Process.create(Native Method)

   at java.lang.Win32Process.(Win32Process.java:98)

   at java.lang.Runtime.execInternal(Native Method)

   at java.lang.Runtime.exec(Runtime.java:602)

 

 

Sean

 

 



From: Sean Tiley 

Sent: Tuesday, May 15, 2007 9:36 PM

To: 'Ant Users List'

Subject: Process Fork Failed

 

Hi there,

I have successfully been using ant(1.6.5) to run a number of test suites
for months. I use the JAVA_HOME is set to the IBM JDK and ANT_HOME is
set,

 

All of a sudden I try and I see the following error and I have no idea
what has happened

 

C:\build\build.xml:562: Process fork failed.

 

The target I am trying to run looks like (it has not changed since I
created it).

 





Running the EJB test suite























 

When I turn on the verbose flag in ant, I see the following

 

 

BUILD FAILED

C:\sean\afsc_source_head\build\build.xml:587: Process fork failed.

at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeAsForked(J
UnitTask.java:882)

at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask
.java:685)

at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeOrQueue(JU
nitTask.java:1434)

at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask
.java:632)

at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

at org.apache.tools.ant.Task.perform(Task.java:364)

at org.apache.tools.ant.Target.execute(Target.java:341)

at org.apache.tools.ant.Target.performTasks(Target.java:369)

at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)

at org.apache.tools.ant.Project.executeTarget(Project.java:1185)

at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecut
or.java:40)

at
org.apache.tools.ant.Project.executeTargets(Project.java:1068)

at org.apache.tools.ant.Main.runBuild(Main.java:668)

at org.apache.tools.ant.Main.startAnt(Main.java:187)

at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)

at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

Caused by: java.io.IOException: CreateProcess: "C:\Program
Files\IBM\WebSphere\AppServer\java\jre\bin\java.exe"

 

 

Any ideas as to what may be happening would be greatly appreciated.

 

 

Thanks

Sean



Re: question for usage in

2007-05-16 Thread Matt Benson
Jay,  should be able to handle what you want
to do, but we need a little more information regarding
the derivation of your target files.  In any event
you'll probably end up using a composite mapper (if
you're using the  element it should magically
behave as a composite mapper simply by nesting
multiple child mappers within it).

HTH,
Matt

--- Jay Dickon Glanville <[EMAIL PROTECTED]>
wrote:

> Any suggestions?
> 
> Thanks
> 
> On 5/14/07, Jay Dickon Glanville
> <[EMAIL PROTECTED]> wrote:
> > Hello again,
> >
> > I have a situation where many java files are being
> created from a
> > single xml file.  I don't want this to be done if
> the java files are
> > up to date.
> >
> > Therefore, I'm trying to use the  task
> to generate a
> > property only if java file creation is necessary. 
> The problem I'm
> > having is that all the examples of the 
> task and it's
> >  subtasks deal with the output being a
> single file.
> >
> > How do I write a  to where the target is
> multiple files?
> >
> > For example
> >
> >>   srcfile="my-xml-file.xml">
> >  > to="a-whole-wack-of-java-files" />
> >   
> >
> > So, what type of mapper do I need to map a single
> source file to
> > multiple target files?
> >
> > --
> > Jay Dickon Glanville
> >
> 
> 
> -- 
> Jay Dickon Glanville
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



   

Moody friends. Drama queens. Your life? Nope! - their life, your story. Play 
Sims Stories at Yahoo! Games.
http://sims.yahoo.com/  

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



Re: question for usage in

2007-05-16 Thread Jay Dickon Glanville

A little more information ...

I have a single XML Schema document (the source file).  I'm using
Castor on this schema to generate a set of java files.  (There are
multiple java files created - at least one for each element in the
schema.  This number is not known at castor-gen time.  These java
files will marshal and unmarshal information from xml files that
comply with the above schema doc.)  The java files are segregated into
an isolated directory.

Then the procedure finishes with the standard compile routine.  They
are not jared into a single distributable.

So the procedure is: single xml schema to multiple java files to
multiple class files.

I don't want to run Castor or javac if any of the java files are older
then the XML schema document.

So, with , I have a situation where I have a single source
file (the XML schema document) with multiple target files (the
multiple java files).  If the relationship were reversed (many source
to one target), I wouldn't have a problem as the documentation is very
helpful.  However, having a one to many relationship is proving a
little difficult.

Does this background information help?

Thanks

JDG

On 5/16/07, Matt Benson <[EMAIL PROTECTED]> wrote:

Jay,  should be able to handle what you want
to do, but we need a little more information regarding
the derivation of your target files.  In any event
you'll probably end up using a composite mapper (if
you're using the  element it should magically
behave as a composite mapper simply by nesting
multiple child mappers within it).

HTH,
Matt

--- Jay Dickon Glanville <[EMAIL PROTECTED]>
wrote:

> Any suggestions?
>
> Thanks
>
> On 5/14/07, Jay Dickon Glanville
> <[EMAIL PROTECTED]> wrote:
> > Hello again,
> >
> > I have a situation where many java files are being
> created from a
> > single xml file.  I don't want this to be done if
> the java files are
> > up to date.
> >
> > Therefore, I'm trying to use the  task
> to generate a
> > property only if java file creation is necessary.
> The problem I'm
> > having is that all the examples of the 
> task and it's
> >  subtasks deal with the output being a
> single file.
> >
> > How do I write a  to where the target is
> multiple files?
> >
> > For example
> >
> >>   srcfile="my-xml-file.xml">
> >  > to="a-whole-wack-of-java-files" />
> >   
> >
> > So, what type of mapper do I need to map a single
> source file to
> > multiple target files?
> >
> > --
> > Jay Dickon Glanville
> >
>
>
> --
> Jay Dickon Glanville
>
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>





Moody friends. Drama queens. Your life? Nope! - their life, your story. Play 
Sims Stories at Yahoo! Games.
http://sims.yahoo.com/

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





--
Jay Dickon Glanville

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



Re: question for usage in

2007-05-16 Thread Matt Benson

--- Jay Dickon Glanville <[EMAIL PROTECTED]>
wrote:

> A little more information ...
> 
> I have a single XML Schema document (the source
> file).  I'm using
> Castor on this schema to generate a set of java
> files.  (There are
> multiple java files created - at least one for each
> element in the
> schema.  This number is not known at castor-gen
> time.  These java
> files will marshal and unmarshal information from
> xml files that
> comply with the above schema doc.)  The java files
> are segregated into
> an isolated directory.
> 
> Then the procedure finishes with the standard
> compile routine.  They
> are not jared into a single distributable.
> 
> So the procedure is: single xml schema to multiple
> java files to
> multiple class files.
> 
> I don't want to run Castor or javac if any of the
> java files are older
> then the XML schema document.
> 
> So, with , I have a situation where I have
> a single source
> file (the XML schema document) with multiple target
> files (the
> multiple java files).  If the relationship were
> reversed (many source
> to one target), I wouldn't have a problem as the
> documentation is very
> helpful.  However, having a one to many relationship
> is proving a
> little difficult.
> 
> Does this background information help?

It does.  From the above I distill the takeaway
message that a mapper won't help you get from your
source to your target files, BUT that you can easily
specify a fileset of your target files.  My
recommendation is to use ant-contrib's outofdate task.

-Matt

> 
> Thanks
> 
> JDG
> 
> On 5/16/07, Matt Benson <[EMAIL PROTECTED]>
> wrote:
> > Jay,  should be able to handle what you
> want
> > to do, but we need a little more information
> regarding
> > the derivation of your target files.  In any event
> > you'll probably end up using a composite mapper
> (if
> > you're using the  element it should
> magically
> > behave as a composite mapper simply by nesting
> > multiple child mappers within it).
> >
> > HTH,
> > Matt
> >
> > --- Jay Dickon Glanville
> <[EMAIL PROTECTED]>
> > wrote:
> >
> > > Any suggestions?
> > >
> > > Thanks
> > >
> > > On 5/14/07, Jay Dickon Glanville
> > > <[EMAIL PROTECTED]> wrote:
> > > > Hello again,
> > > >
> > > > I have a situation where many java files are
> being
> > > created from a
> > > > single xml file.  I don't want this to be done
> if
> > > the java files are
> > > > up to date.
> > > >
> > > > Therefore, I'm trying to use the 
> task
> > > to generate a
> > > > property only if java file creation is
> necessary.
> > > The problem I'm
> > > > having is that all the examples of the
> 
> > > task and it's
> > > >  subtasks deal with the output being a
> > > single file.
> > > >
> > > > How do I write a  to where the target
> is
> > > multiple files?
> > > >
> > > > For example
> > > >
> > > >> > >   srcfile="my-xml-file.xml">
> > > >  > > > to="a-whole-wack-of-java-files" />
> > > >   
> > > >
> > > > So, what type of mapper do I need to map a
> single
> > > source file to
> > > > multiple target files?
> > > >
> > > > --
> > > > Jay Dickon Glanville
> > > >
> > >
> > >
> > > --
> > > Jay Dickon Glanville
> > >
> > >
> >
>
-
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > >
> > >
> >
> >
> >
> >
> >
>

> > Moody friends. Drama queens. Your life? Nope! -
> their life, your story. Play Sims Stories at Yahoo!
> Games.
> > http://sims.yahoo.com/
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> 
> 
> -- 
> Jay Dickon Glanville
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



   

Moody friends. Drama queens. Your life? Nope! - their life, your story. Play 
Sims Stories at Yahoo! Games.
http://sims.yahoo.com/  

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



Re: question for usage in

2007-05-16 Thread Jay Dickon Glanville

Thanks for the suggestion.  I'll investigate ant-contrib.

JDG

On 5/16/07, Matt Benson <[EMAIL PROTECTED]> wrote:


--- Jay Dickon Glanville <[EMAIL PROTECTED]>
wrote:

> A little more information ...
>
> I have a single XML Schema document (the source
> file).  I'm using
> Castor on this schema to generate a set of java
> files.  (There are
> multiple java files created - at least one for each
> element in the
> schema.  This number is not known at castor-gen
> time.  These java
> files will marshal and unmarshal information from
> xml files that
> comply with the above schema doc.)  The java files
> are segregated into
> an isolated directory.
>
> Then the procedure finishes with the standard
> compile routine.  They
> are not jared into a single distributable.
>
> So the procedure is: single xml schema to multiple
> java files to
> multiple class files.
>
> I don't want to run Castor or javac if any of the
> java files are older
> then the XML schema document.
>
> So, with , I have a situation where I have
> a single source
> file (the XML schema document) with multiple target
> files (the
> multiple java files).  If the relationship were
> reversed (many source
> to one target), I wouldn't have a problem as the
> documentation is very
> helpful.  However, having a one to many relationship
> is proving a
> little difficult.
>
> Does this background information help?

It does.  From the above I distill the takeaway
message that a mapper won't help you get from your
source to your target files, BUT that you can easily
specify a fileset of your target files.  My
recommendation is to use ant-contrib's outofdate task.

-Matt

>
> Thanks
>
> JDG
>
> On 5/16/07, Matt Benson <[EMAIL PROTECTED]>
> wrote:
> > Jay,  should be able to handle what you
> want
> > to do, but we need a little more information
> regarding
> > the derivation of your target files.  In any event
> > you'll probably end up using a composite mapper
> (if
> > you're using the  element it should
> magically
> > behave as a composite mapper simply by nesting
> > multiple child mappers within it).
> >
> > HTH,
> > Matt
> >
> > --- Jay Dickon Glanville
> <[EMAIL PROTECTED]>
> > wrote:
> >
> > > Any suggestions?
> > >
> > > Thanks
> > >
> > > On 5/14/07, Jay Dickon Glanville
> > > <[EMAIL PROTECTED]> wrote:
> > > > Hello again,
> > > >
> > > > I have a situation where many java files are
> being
> > > created from a
> > > > single xml file.  I don't want this to be done
> if
> > > the java files are
> > > > up to date.
> > > >
> > > > Therefore, I'm trying to use the 
> task
> > > to generate a
> > > > property only if java file creation is
> necessary.
> > > The problem I'm
> > > > having is that all the examples of the
> 
> > > task and it's
> > > >  subtasks deal with the output being a
> > > single file.
> > > >
> > > > How do I write a  to where the target
> is
> > > multiple files?
> > > >
> > > > For example
> > > >
> > > >> > >   srcfile="my-xml-file.xml">
> > > >  > > > to="a-whole-wack-of-java-files" />
> > > >   
> > > >
> > > > So, what type of mapper do I need to map a
> single
> > > source file to
> > > > multiple target files?
> > > >
> > > > --
> > > > Jay Dickon Glanville
> > > >
> > >
> > >
> > > --
> > > Jay Dickon Glanville
> > >
> > >
> >
>
-
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > >
> > >
> >
> >
> >
> >
> >
>

> > Moody friends. Drama queens. Your life? Nope! -
> their life, your story. Play Sims Stories at Yahoo!
> Games.
> > http://sims.yahoo.com/
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
>
>
> --
> Jay Dickon Glanville
>
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>





Moody friends. Drama queens. Your life? Nope! - their life, your story. Play 
Sims Stories at Yahoo! Games.
http://sims.yahoo.com/

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





--
Jay Dickon Glanville

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



calling an Ant script from another ant script...

2007-05-16 Thread Bob Aiello
How do I call an Ant script from another ant script?

Bob

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



RE: calling an Ant script from another ant script...

2007-05-16 Thread Sean Tiley
Have a look at the ant  core task



HTH



-Original Message-
From: Bob Aiello [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 16, 2007 3:51 PM
To: Ant Users List
Subject: calling an Ant script from another ant script...

How do I call an Ant script from another ant script?

Bob

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


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



vsscheckin task

2007-05-16 Thread Shankar S

Hi Folks,

I am trying to checkin a list of files using vsschekin task.
Here is the code snippet:


   

But it's complaining that the files path is an Invalid DOS path. Is it
because the file path has whitespaces?
Any workaround for this will be highly appreciated.

Cheers;
Shankar