Re: Ant execution error: "Files was unexpected at this time."

2011-12-02 Thread Scott Stark
Ah I figured it out -- ant.bat was pointing to the 32 bit version of Java; changing JAVA_HOME to the 64 bit version fixed it. Gotta love that error message! thanks, Scott Scott Stark/Oakland/IBM@IBMUS sst...@us.ibm.com 400 W. 15th Street, 12th floor Austin, TX 78722 1-512-469-6512 (T/L: 595

Ant execution error: "Files was unexpected at this time."

2011-12-02 Thread Scott Stark
Hi, I've just installed Ant 1.8.2 on my new Windows 7 machine, and set ANT_HOME to c:\apache-ant-1.8.2 When I run any Ant commands I get the message "Files was unexpected at this time." Any idea what's wrong? I couldn't find anything useful on the web about this error. thanks, Scott

Re: Newbie question: importing properties from XML file via command line

2009-09-14 Thread Scott Stark
Joe wrote: > That's not correct: ant properties in the file are expanded inline. > See http://ant.apache.org/manual/CoreTasks/property.html for details > (I don't know about ${file.separator}, though) I see that in the documentation; however it's not working for me. My properties file: script_dir

RE: Newbie question: importing properties from XML file via command line

2009-09-11 Thread Scott Stark
> Any particular reason you're not using a plain old properties file? Also I've noticed you can't "inherit" properties in a properties file. For example, this doesn't work: projectRoot=C:\\working documentSource=${projectRoot}\\documents And you can't even use ${file.separator}... Scott

RE: Newbie question: importing properties from XML file via command line

2009-09-11 Thread Scott Stark
command line, since it already exists. Scott -Original Message- From: Scott Stark I want to import a set of properties from an XML file when I run an Ant build from the command line. I can do that with the -propertyfile param if the file has name=value pairs in it. Any way to do thi

Newbie question: importing properties from XML file via command line

2009-09-11 Thread Scott Stark
Hi, this is probably a dumb question but I couldn't find the answer in the online doc. I want to import a set of properties from an XML file when I run an Ant build from the command line. I can do that with the -propertyfile param if the file has name=value pairs in it. Any way to do this with an

Re: AW: exec on batch file causes build to hang

2009-08-18 Thread Scott Stark
Sascha Ernst wrote: > Perhaps this helps Wow, that's some crazy code there! :-) Well, it does open a new window, but unfortunately the original build still doesn't complete in the first window. Sigh... I'm going to go after the developer who wrote this crazy java p

Re: exec on batch file causes build to hang

2009-08-18 Thread Scott Stark
David Weintraub wrote: > > > Can you run the batch file outside of Ant from the command line without > the > > process hanging? > I've discovered that running "start IC_start.bat" from the command line opens the process in a new window and returns control to the executing window (on Windows XP).

Re: exec on batch file causes build to hang

2009-08-17 Thread Scott Stark
> Another possibility is to surround the task with the task. > The task will terminate the task after a certain period of > time. I don't know how well it works on Windows. Nice idea, but: BUILD FAILED C:\working\informix\stop_restart.xml:95: waitfor doesn't support the nested "exec" element.

Re: exec on batch file causes build to hang

2009-08-17 Thread Scott Stark
> Can you run the batch file outside of Ant from the command line without the > process hanging? Hi David, technically, yes. But the process (batch file) doesn't "hang"; it executes a java tool and holds that state ("running") until the process is terminated by another batch file. In other words,

Re: exec on batch file causes build to hang

2009-08-14 Thread Scott Stark
Hi David, thank you kindly for the pointer about running batch files on Windows. However, I get the same results when running my build file from the command line: the batch file executes (and starts the java process), but never returns control to the build file, so I have to hit control-C to exit

exec on batch file causes build to hang

2009-08-14 Thread Scott Stark
I'm not sure if this is an Ant problem or a batch file problem, so I'll start here -- apologies if it's inappropriate. I'm using an Ant build file to execute a Windows XP batch file using the exec command. My target looks something like this: The problem is, spawn="true" results

Re: Remove trailing spaces from a string?

2009-06-22 Thread Scott Stark
> Ant Contrib has a PropertyRedgex task you can use... Sorry, I don't see anything called that in ant-contrib. Is there another name for it? thanks, Scott

Remove trailing spaces from a string?

2009-06-22 Thread Scott Stark
an extra space at the end of a file name, which is impossible to see in a text editor, but the extra space can cause the build to fail. Thanks, Scott Stark

Re: Problem with using the property task

2009-03-14 Thread Scott Stark
>i test your files and my output is: >[echo] component name is vti >Test in Eclipse. >I have attached an zip-file containing my test. Henning, it is working now, thank you. I must have had the syntax wrong. Scott

Problem with using the property task

2009-03-13 Thread Scott Stark
I'm trying to import a set of properties from a property file into my build when using the call. My property file looks something like this: My build file contains this target: The that it's calling (buildfile.xml) contains this target:. component name is ${compone

Re: if and conditions

2009-03-06 Thread Scott Stark
>The task is part of the AntContrib package which is available >from http://ant-contrib.sourceforge.net/>. Task descriptions are from > Thanks all for the replies. Yes I already found the documentation but there's nothing in there about

if and conditions

2009-03-06 Thread Scott Stark
Dumb question, but where in the documentation (http://ant.apache.org/manual/index.html) is there a discussion of and ? thanks, Scott

Re: Is there a login "wait for password" target/task?

2009-02-24 Thread Scott Stark
> asks for entry of some string; it doesn't ask if the property is >already set, so for CI servers you set it up with login details for that >account. > >For talking to a nested shell script, I think the component can >do that I looked at telnet, which is why I thought there might be something si

Re: Is there a login "wait for password" target/task?

2009-02-23 Thread Scott Stark
>Ant has optional Perforce tasks, and these tasks use the globalopts >setting, so you can pass a password though that. Hi David, yes I saw that but couldn't find anything that does what I want. Our Perforce install does not allow you to pass a password as a command line parameter -- it stops and

RE: Is there a login "wait for password" target/task?

2009-02-21 Thread Scott Stark
> For our Perforce tasks that we've automated with Ant, we login once > outside the script, and just save the login ticket that perforce > creates. Is that an option? > Kajsa Anderson Alas, no -- we can to that too, but I'm try to set up an automated nightly build that requires zero human interve

Re: Is there a login "wait for password" target/task?

2009-02-20 Thread Scott Stark
> Hello Scott, FWIF maybe this link can help: http://www.jera.com/tools/anttasks/. 8) David. Thanks David, but not quite what I'm looking for -- sorry I wasn't clear. I do want the script to pass the login and password (without being prompted), to an application that prompts and waits for input.

Is there a login "wait for password" target/task?

2009-02-20 Thread Scott Stark
I noticed the task automates a remote telnet session, using and to indicate strings to wait for and specify text to send. Is there any more generic task that can do this? I'm trying to access a remote db system that prompts for a password. (Actually it's Perforce, but I didn't see any perforce

Re: Ant XSL: inserting unwanted attributes

2009-02-18 Thread Scott Stark
>So, have you tried to run your XSLT outside of Ant? Be interesting to see >if you get the same results... >Ah...gotcha about xmlcatalog :) Yeah, getting that to work with Saxon was more than my brain could handle... couldn't find any good doc about it. Turned out to be easy with Ant... Scott

Re: Ant XSL: inserting unwanted attributes

2009-02-18 Thread Scott Stark
>However, I don't recall seeing mention of default values... Just the resultant >document has unwanted attributes added... >So, if this is in fact that situation...I'm confused about the posting to this list... >Have you tried to execute your XSLT outside Ant? If so and the result is the same..

Re: Ant XSL: inserting unwanted attributes

2009-02-17 Thread Scott Stark
e, but which XML parser? Is it something in Ant that I can control? thanks Scott Scott Stark/Oakland/i...@ibmus sst...@us.ibm.com 400 W. 15th Street, 12th floor Austin, TX 78722 1-512-469-6512 (T/L: 595-6512)

Ant XSL: inserting unwanted attributes

2009-02-17 Thread Scott Stark
XSL, should be identical to the source. The problem is that unwanted attributes often appear in the output XML. For example: becomes and becomes There's nothing in my XSL that's inserting these attributes. Any idea what's going on? Thanks.