Re: well-defined ant/xslt problem: (how) can I do this?

2008-02-07 Thread Martin Ficker
xslt does support a nested mapper. Something like this should work: Bill Milbratz schrieb: > Hi, > > i have a problem which I don't know if I can solve elegantly with ant. > > The problem: I'd like to use the xslt task to transform these inputs into > th

AW: buildfile not producing subpackages

2008-02-07 Thread Jan.Materne
> I have a project in eclipse and when I run "build generate" > it generates the > classes in the main package (com.sparta.customer) but not in > the subpackages > (com.sparta.customer.impl) in the produced buildfile. what > could be wrong? > here's my buildfile (below). Also I get a "can't f

Re: well-defined ant/xslt problem: (how) can I do this?

2008-02-07 Thread Denis N. Antonioli
Hi Disclaimer: this tip assumes that you're using ant 1.7 The xsl task can pass to the xsl the name of the file being processed (see attributes filedirparameter and filenameparameter) You can then: in ant: - use a fileset to let the xsl task process all of the changes.xml; - use filedirpara

buildfile not producing subpackages

2008-02-07 Thread dbhalsema
I have a project in eclipse and when I run "build generate" it generates the classes in the main package (com.sparta.customer) but not in the subpackages (com.sparta.customer.impl) in the produced buildfile. what could be wrong? here's my buildfile (below). Also I get a "can't find com.sun.tool

Re: Ant's preferred location of toolkit.jar?

2008-02-07 Thread Vijay Aravamudhan
set the JAVA_HOME environment variable to point to the JDK. hth, Vijay [EMAIL PROTECTED] wrote: I have just installed Ant on a laptop I haven't used previously for development. When I ran ant.bat, I got a message telling me that Ant couldn't find toolkit.jar in my jre directory. The file is i

Ant's preferred location of toolkit.jar?

2008-02-07 Thread cknell
I have just installed Ant on a laptop I haven't used previously for development. When I ran ant.bat, I got a message telling me that Ant couldn't find toolkit.jar in my jre directory. The file is is my jdk directory. I searched the ant.bat file and couldn't find where to tell ant to look in the

Re: well-defined ant/xslt problem: (how) can I do this?

2008-02-07 Thread Klaus Malorny
Bill Milbratz wrote: Hi, i have a problem which I don't know if I can solve elegantly with ant. The problem: I'd like to use the xslt task to transform these inputs into the following outputs; inputs: v10/changes.xml v11/changes.xml v12/changes.xml outputs: v10/changes.out v11/chan

RE: Probable "configuration" misconfiguration

2008-02-07 Thread Matt Reynolds
As it turns out, I should have checked the dev mailing list first. I'm also getting this error : The result is an unresolved dependency: "test#b;1: configuration(s) not found in test#b;1: default. It was required from test#c;1 compile" Although, of course, for my project. > -Original Message

Blocking IO in StreamPumper causes ant based installer to hang.

2008-02-07 Thread Daffin, Miles (IT)
Hi Folks, I wrote an ant based installer for eclipse ide. After unzipping a download to the user's local drive it installs a list of plugins using exec to run a perl script that in turn runs a java program. The installation of one plugin hangs 9 times out of 10. Does anyone have any idea what is

Re: headless build vs. eclipse build

2008-02-07 Thread Steven Guitar
well i guess i was confused when i built the last test jars that i was testing because after i logged off and back on this morning, my env vars got reset correctly this time, as reported by -v on ant. now when i build them from ANT, everything is working as intended. thanks for the heads up

RE: well-defined ant/xslt problem: (how) can I do this?

2008-02-07 Thread Barry Pape
There is a target attribute for the foreach task. So I'm thinking you would want to do something like this: -Original Message- From: Bill Milbratz [mailto:[EMAIL PROTECTED] Sent: Thursday, February 07, 2008 12:55 PM To: user@ant.apache.org Subject: Re: well-defined ant/xslt problem:

RE: well-defined ant/xslt problem: (how) can I do this?

2008-02-07 Thread Brian Bassett
requires that all the tasks to be nested within a element: Brian -Original Message- From: Bill Milbratz [mailto:[EMAIL PROTECTED] Sent: Thursday, February 07, 2008 10:55 AM To: user@ant.apache.org Subject: Re: well-defined ant/xslt problem:

Re: well-defined ant/xslt problem: (how) can I do this?

2008-02-07 Thread James Fuller
u might have luck having the foreach call a macrodef (just make the target into a macrodef) hth, Jim Fuller On Feb 7, 2008 7:55 PM, Bill Milbratz <[EMAIL PROTECTED]> wrote: > A follow-up: > > I tried the using the ant-contrib for each, and manually specifying the > versions in a list, but came ac

Re: well-defined ant/xslt problem: (how) can I do this?

2008-02-07 Thread Bill Milbratz
A follow-up: I tried the using the ant-contrib for each, and manually specifying the versions in a list, but came across a limitation: pe\build-developer.xml:1217: foreach doesn't support the nested "antcall" element. (I've implemented the internals for the for-each using antcall); can anyone c

Re: condition question

2008-02-07 Thread Z W
Folks Steve was right. I have to use trim=yes. On Feb 7, 2008 1:24 AM, Steve Loughran <[EMAIL PROTECTED]> wrote: > Z W wrote: > > Charbel > > thanks for the response. > > I still get the same problem with that small change. > > > > > > confused ${confused} > > > > > > > > > > > > > > > >

well-defined ant/xslt problem: (how) can I do this?

2008-02-07 Thread Bill Milbratz
Hi, i have a problem which I don't know if I can solve elegantly with ant. The problem: I'd like to use the xslt task to transform these inputs into the following outputs; inputs: v10/changes.xml v11/changes.xml v12/changes.xml outputs: v10/changes.out v11/changes.out v12/changes.out T

Re: import requires support in ProjectHelper

2008-02-07 Thread Xavier Hanin
On Feb 7, 2008 6:13 PM, jm <[EMAIL PROTECTED]> wrote: > HI, > > I am using a build file from java code like this (ant 1.7, jdk1.6): > >Project project = new Project(); >project.init(); >ProjectHelper projectHelper = ProjectHelper.getProjectHelper(); >projectHelper.p

Re: headless build vs. eclipse build

2008-02-07 Thread Steven Guitar
I've got the env vars referencing the same in both worlds but still not working. If I were to check for jar extensions which do I check for? Sent from my iPhone On Feb 6, 2008, at 2:48 PM, Martin Gainty <[EMAIL PROTECTED]> wrote: blame is an svn command.. since the manifest is different be

import requires support in ProjectHelper

2008-02-07 Thread jm
HI, I am using a build file from java code like this (ant 1.7, jdk1.6): Project project = new Project(); project.init(); ProjectHelper projectHelper = ProjectHelper.getProjectHelper(); projectHelper.parse(project, buildfile); project.executeTarget(target);

Probable "configuration" misconfiguration

2008-02-07 Thread Matt Reynolds
I apologize that this will probably be both vague and slightly wrong, but I don't have a way to demonstrate the problem I'm facing (I'm open to suggestions on how to do so, ivy-report won't run to completion given the following error). I've been using Ivy for a year or two here at work (and at hom

Re: condition question

2008-02-07 Thread Steve Loughran
Z W wrote: Charbel thanks for the response. I still get the same problem with that small change. confused ${confused} retest ${retest6} _recheck: [echo] confused 5 [echo] Condition false; setting retest6 to 6 Setting project property: retest6 -> 6 [echo] retest 6 Pr