Re: Generate XML

2009-05-11 Thread James Fuller
On Mon, May 11, 2009 at 8:30 PM, raghu guru wrote: > Hi All, > > Is there any task available to generate / edit the xml file. 3rd party xmltask task will do that hth, Jim Fuller > > This is what i'mt rying to do, while building application i want to put some > information on the fly like, time,

Re: list out no. of targets

2008-05-13 Thread James Fuller
try -projecthelp Options: -help, -h print this message -projecthelp, -p print project help information -version print the version information and exit -diagnostics print information that might be helpful to diagnose or rep

Re: writing to XML

2008-05-01 Thread James Fuller
On Thu, May 1, 2008 at 4:01 PM, Guy Catz <[EMAIL PROTECTED]> wrote: > Thanks guys, that's very helpful. > > But, once I've used echoxml to write into a file, can I use it again to > add more values, in append mode? yes but an xml file with no root parent is invalid xml ;) e.g. if u just append

Re: How does Ant accept 2 input files such that xsl could differentiate them ?

2008-03-25 Thread James Fuller
Hello, you could just use XSLT native functionality for this type of thing; I would imagine using the document() function. if u need to procedurally pass in file names, just pass in via xsl:params (xslt task can be configured to pass in params). of course I am assuming you are working with xml f

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: Is & a somehow special character to Ant?

2007-08-24 Thread James Fuller
to be more specific http://www.xml.com/pub/a/2001/01/31/qanda.html gl, Jim Fuller On 8/24/07, Borut Hadžialić <[EMAIL PROTECTED]> wrote: > & is special for xml because xml references start with & > > For your command you should use & instead of &, or put the whole > line inside , in which case y

FYI: antv1.7beta test and builds on MacOSX 10.4.7 with no problems

2006-08-28 Thread James Fuller
FYI: antv1.7beta test and build fine on MacOSX 10.4.7 dump-sys-properties: [echo] java.vm.info=mixed mode, sharing [echo] java.vm.name=Java HotSpot(TM) Client VM [echo] java.vm.vendor="Apple Computer, Inc." [echo] java.vm.version=1.5.0_06-64 [echo] os.arch=ppc [echo]

Re: AW: Dynamic Ant Tasks from a Website with PHP

2006-08-28 Thread James Fuller
Hi, Does anyone has an idea how to start Ant from a website with php. Case: A User selects some xml files via checkbox. Per button an ant task is created and should start ant with the task to generate Pdfs from the selected files with FOP. Someone an idea how to do it? http://uk.php.net/ja

Re: Directly extract tar.gz or bz2 package

2006-07-21 Thread James Fuller
Vincent wrote: Hi , But still needs to steps right? First step : unpack tar.gz to tar Second step : unpack contents of tar I am wondering if we can just one step to do this? Just like shell command tar xzf xxx.tar.gz just look at the command in the manual. --Jim Fuller best regards, Vin

Re: classpath problem using the java task

2006-07-05 Thread James Fuller
to access env vars (http://ant.apache.org/manual/index.html) and then echo out. though its best to leave nothing to chance and completely control either via a batch script that runs Ant or definition in ant build file things like PATH, etc... gl, Jim Fuller ---

Re: help to compile c / c++ files in ant

2006-06-30 Thread James Fuller
Here is a nice illustration in context of using cc with macrodef. http://ant.apache.org/manual/CoreTasks/macrodef.html definition: usage:

Re: Ant and Questions

2006-01-09 Thread James Fuller
Karthik wrote: >Hi Form > >Somebody help me in the questions below. > >1)Time consumed for the TARGET that was fired from "build.xml" in form of >o/p using echo. > >2)Howto make use of LOGGER in ANT are there any specific tags built in for >using the same > > timing look at ant-contrib.sourcefor

Re: using a path element to copy to archive the whole structure

2006-01-05 Thread James Fuller
Stephane Nicoll wrote: >Hello list, > >I am currenlty working with path and have a problem. I checked the >documentation and see nothing that would help me. > >I have a path named "maven.compile.src.set" which contains a list of >directories containing Java source files. I would like to create an

Re: MULTI DEPLOYMENT

2006-01-01 Thread James Fuller
Karthik wrote: >Hi For > > > But every targets have to be run > seperately for every deployment / roll back process for 1..n servers. > > Hello Karthik, I think one of the problems people encounter often when designing a build/deploy system is trying to write the entire script in one step

Re: UTF-8 text in a propertyfile?

2005-12-29 Thread James Fuller
Steven Anderson wrote: >I'm trying to pass a string of UTF-8 (Japanese) characters via a >property to an xslt task in ant. > >If I set the property in the buildfile, with encoding="UTF-8", >everything works fine. If I specify the property on the command-line >(in Windows XP), or via a UTF-8 enc

Re: extracting part of a property.

2005-08-08 Thread James Fuller
Krist van Besien wrote: >Hello, > >I am trying to figure out if I could get ant to do some string manipulation. >Suppose I have a property with value: "foo_0.01 >and I want to split this on the _ character and put "foo" and "0.01" >each in a different property to use further down in my ant script

Re: Urgent request for testing availability of websites.

2005-08-02 Thread James Fuller
a > >-----Original Message- >From: James Fuller [mailto:[EMAIL PROTECTED] >Sent: Tuesday, August 02, 2005 12:25 PM >To: Ant Users List >Subject: Re: Urgent request for testing availability of websites. > >[EMAIL PROTECTED] wrote: > > > >>Is there a

Re: Urgent request for testing availability of websites.

2005-08-02 Thread James Fuller
[EMAIL PROTECTED] wrote: >Is there a way through ant to do > >a) Login in to a website - success or failure based on status codes. > > try ant-contrib http post task http://www.macromedia.com/cfusion/tdrc/index.cfm?product=coldfusion >b) To test hyperlink's to check if the applications are r

Re: regular expression help

2005-08-02 Thread James Fuller
[EMAIL PROTECTED] wrote: >Hello guys; >I would like some help for the following. >Using how would you perform the following: > >input string="Foo Bar Jeff Blabla" >replacing prefix="myPrefix" >result string="myPrefixFoo myPrefixBar myPrefixJeff myPrefixBlabla" > > \w* should match every word o

Re: which build tool yields fastest incremental builds? GNU make , Jam , Ant or Scons ?

2005-07-22 Thread James Fuller
>so anybody knows which one is fastest among Jam,Ant and Scons ? > > the differences in perf are small between the three versus other bottlenecks, for example does your current build system do the following; - smart copies, e.g. only copy things that need copying - smart testing, e.g. only t

Re: Queries on using ANT

2005-07-13 Thread James Fuller
Karunakar Chatla wrote: >Thanks for the help. > >For 2nd query : > >We need to build some of the components in the system and publish the build >information, like, Release Number, Build Number, Components affected on a >web page. There exists a web page and we have to update that web page each >ti

Re: Queries on using ANT

2005-07-13 Thread James Fuller
Karunakar Chatla wrote: >Hi, > >I am currently using ANT in my project. I have following queries - >1) I have the requirement to build a C++ project( .dsw file ). >How can I do this, as I didn't find any direct support in ANT Task list? > > check out the useful set of tasks bundled with the

Re: cc task(bis)

2005-06-09 Thread James Fuller
[EMAIL PROTECTED] wrote: >Thanks for the answer james. >And have you ever targeted mainframe environments for c builds for instance? > > yes, this can be quite an experience to get things right...if the mainframe is *just* a deployment target then life is made a mite easier, though everytime I h

Re: [delete] dir, delete all but one subdir

2005-06-09 Thread James Fuller
Rebhan, Gilbert wrote: > >Hi, > >OK then i moved defaultexcludes > > > > > > > > >no DEPRECATED anymore, but there are still some dirs remaining >that should be deleted. > > ok, if u are expecting all directories named

Re: [delete] dir, delete all but one subdir

2005-06-09 Thread James Fuller
Rebhan, Gilbert wrote: >Hi, > >i've tried with = > >defaultexcludes="false"> > > > > > > >[delete] DEPRECATED - Use of the implicit FileSet is deprecated. Use a >nested fileset element instead. > > here is the m

Re: cc task(bis)

2005-06-09 Thread James Fuller
[EMAIL PROTECTED] wrote: >Hello gentle people! >I just found out that there are c/c++ tasks in the ant-contrib project.(and by >the way is the sourceforge server down) >Is there another resource for such a task? > > ant-contrib c/c++ are the best I have used... gl, Jim Fuller ---

Re: remoteAnt vs. rant

2005-06-09 Thread James Fuller
[EMAIL PROTECTED] wrote: >I need to make a decision what to use for my distributed build-system that >synchronously builds C++ on Mac and WIn and a large java project also on mac >and win. > > IMHO, RemoteAnt within ant-contrib lib wins hands down for stability etc...though if want you want is

Re: [delete] dir, delete all but one subdir

2005-06-09 Thread James Fuller
Rebhan, Gilbert wrote: >Hi, > >i want to delete all subdirs but one dir should remain. > >for example : > >test > sub1 > sub2 > jars > >i want delete sub1 and sub2 but /jars should stay > > use and nested elements to define which dirs should stay and which should be deleted using

Re: Antcall Vs. macrodef

2005-05-25 Thread James Fuller
[EMAIL PROTECTED] wrote: >Hi folks, > >I am writing a common build script for 2 departments that build similar >products but have some slightly different requirements in terms of build >structure. > >My plan was to have modular independent functions so that the common >functionality could be used

Re: XSLT transofrmations

2005-05-25 Thread James Fuller
Ammar Hedi (stu) wrote: >Is there possible to make an xslt transformation by using the task JAVA? > > > you can either directly invoke the XSLT processor of your choice (if its on your machine), using the tag if its a Java processor or the or if it has a command line interface. alternately

Re: Unrelated ANT questions

2005-04-21 Thread James Fuller
S I wrote: > OK, > > 1. Could someone please point me to the ANT mailing list etiquette > page. I do have a certain decorum but just didn't wanna step on any > toes. However, I don't see anything on > http://ant.apache.org/mail.html or anything remotly describing the > details of posting or posi

Re: AW: Converting new or changed files with an batch file called from within ant

2005-04-12 Thread James Fuller
Huditsch Roman wrote: >Hi Jim, > >Thanks a lot for your solution. >I'll straigth dive into it tomorrow morning. >Thanks! > > > a few caveats...u have to download ant-contribs jar and make it available to Ant (usually this means putting it in ant's lib...though I would suggest putting into a sep

Re: Converting new or changed files with an batch file called from within ant

2005-04-12 Thread James Fuller
you could do something like Transform not required

Re: AW: AW: AW: Converting new or changed files with an batch file called from within ant

2005-04-12 Thread James Fuller
>The is making my go crazy...I don't get it to work in the way I >want. >I would like to transform just those files in "source" which have been altered >in respect to the "result" directory >But the above statement is setting "xmlBuild.notRequired" if one file has been >altered, which

Re: AW: AW: Converting new or changed files with an batch file called from within ant

2005-04-12 Thread James Fuller
http://ant-contrib.sourceforge.net/ gives u etc...generally you should resort to such things after you have exhausted all other meansthough the nice thing with using Ant as Controller is that you will continue to tweak (as with a build) to satisfy constantly changing requirements. gl, Jim F

Re: AW: AW: Converting new or changed files with an batch file called from within ant

2005-04-12 Thread James Fuller
Huditsch Roman wrote: >Hi James, > >As you may have seen by my previous posts on the list, >I managed to make some progress :))) > > > its great to see you getting the hang of things...though there are many refactoring opportunities with your build file a) instead of creating one large target,

Re: Converting new or changed files with an batch file called from within ant

2005-04-12 Thread James Fuller
Huditsch Roman wrote: >Hi list, > >Although I search the archives, I could not find any useful hint for my >problem. >I recently started using ant for controlling my XSLT transformations. >Actually, I need ant to take control over the execution of the appropriate >batch file for a given target.

Re: Remote Ant

2005-04-01 Thread James Fuller
Ron Ohmer wrote: >I was looking for this functionality, and ran across Rant. Nice name, but it >has been inactive since 2002. Also it is on ver 0.1. > >Usually this is due to something superceding it. Is there something out >there, that I am unaware of? > > > look at Ant-Contrib's tasks f

Re: question

2005-03-15 Thread James Fuller
rakesh mailgroups wrote: Hi, I would like my build file to abort if a file does not exist. I couldn't find a way to find out if the file exists, but I did see a way to check for the existence of properties (since the file is a property file), I did this: Value of password is ${sun.password}

Re: multiple jars

2005-03-14 Thread James Fuller
THUFIR HAWAT wrote: I've got some source and build files at. is it possible to compile both source files to make two .jar files from one build file? you can of course compile with Ant using the task (as many times as you want), then use Ant's task (as many time

Re: how can we find which jre home is in use by ant script?

2005-03-14 Thread James Fuller
IndianAtTech wrote: Hi All, how can we find which jre home is in use by ant script? Thanks Sudhakar you could print out the following java property to detect JVM in current usage as well ant.java.versionthe JVM version Ant detected; currently it can hold the values "1.1",

Re: directory paths

2005-03-04 Thread James Fuller
rakesh mailgroups wrote: Hi, sometimes Ant gives you too many ways to do things and you cobble something together that works but you think can probably done easier. Here's what i am trying to do: My web.xml needs to contain a full path to a config file. This path should work whether on windows or u

Re: Using pcli under ANT 1.6.2

2005-02-28 Thread James Fuller
Balasinorwala, Murtuza J. wrote: Hello, I recently upgraded from ANT 1.5 to ANT 1.6.2 in order to use the SCP task in my build scripts and replace it with the ftp task. I got the jar files necessary to make the SCP task work with the existing build scripts. But now, the pcli tasks fail. Can som

Re: AW: ant property

2005-02-25 Thread James Fuller
Douglas Kramer wrote: I'd like to set up my Ant script to load one set of paths if I'm building on one machine and a different set of paths when building on a another machine. this can be achieved in a variety of ways; In build.properties I have: run.classpath.javadoc="${JAVA_HOME}/lib/tools.jar" r

Re: ant property

2005-02-25 Thread James Fuller
Rajiv Jaitly wrote: Please read the disclaimer at the bottom of this e-mail. Hi, Is there any was in Ant to reset (assign a new value) a property that was set previously ? As i understa

Re: Not stop build on xslt faillure

2005-02-17 Thread James Fuller
Robert Soesemann wrote: I am using the new xslt2 engine Saxon8. -Original Message- From: James Fuller [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 17. Februar 2005 11:44 To: Ant Users List Subject: Re: Not stop build on xslt faillure Robert Soesemann wrote: Acttually I was looking for

Re: Not stop build on xslt faillure

2005-02-17 Thread James Fuller
Robert Soesemann wrote: Acttually I was looking for a way inside the functionality of the xslt task or Ant. Another library would be overkill. which XSLT processor are u using? it is possible to configure error behavior on some of them. hth, Jim Fuller ---

Re: XML and copy directories

2005-02-04 Thread James Fuller
Ninju Bohra wrote: Well, The safe answer is yes and no... Out of the box, the ANT distribution (along with the ant-contrib project) comes with a number of concepts (tasks and structures) that would be helpful (, , , etc...) to accomplish MOST of what you want. The one area that is not currently p