> The XSLT runs fine together with Saxon processor.
Then use the Saxon processor in ANT. I set the CLASSPATH to include the
saxon.jar file, then I set the value of the "processor" attribute to "trax" as
shown below.
processor="trax"
--
Charles Knell
ckn...@onebox.com - email
-Origina
The variable is defined in the build.xml file. The only thing the macrodef file
needs to have in advance in the name of the attribute, not the value.
--
Charles Knell
ckn...@onebox.com - email
-Original Message-
From: Mark Waschkowski
Sent: Fri, 6 Feb 2009 16:28:38 -0500
To:
I set up properties
in the "init" target and use references to them in the macrodefs.
Here's an example
I then refer to the property in the macrodef
ex.
Thanks. That did the trick.
--
Charles Knell
[EMAIL PROTECTED] - email
-Original Message-
From: Vijay Aravamudhan <[EMAIL PROTECTED]>
Sent: Thu, 07 Feb 2008 16:55:43 -0800
To: Ant Users List
Subject: Re: Ant's preferred location of toolkit.jar?
set the JAVA_HOME environ
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
No, you're not. Remember, "Them!" (1954)?
--
Charles Knell
[EMAIL PROTECTED] - email
-Original Message-
From: Frank W. Zammetti <[EMAIL PROTECTED]>
Sent: Thu, 8 Nov 2007 13:18:36 -0500 (EST)
To: "Ant Users List"
Subject: Re: Ant vs Apache
Ant vs. Apache ... am I the onl
--
Charles Knell
[EMAIL PROTECTED] - email
-Original Message-
From: Knuplesch, Jürgen <[EMAIL PROTECTED]>
Sent: Tue, 23 Oct 2007 16:43:40 +0200
To: "Ant Users List"
Subject: AW: Memory and Ant
Hi Sumit,
Thank you for the answer!!
I did not understand, where I have
Is there a method for setting a property's value to the return value of a Java
program?
I have a Java program that executes an XPath query and returns a string. How
can I create a property from this returned string?
Thanks.
--
Charles Knell
[EMAIL PROTECTED] - email
-
You may get more help if you give more information. Ant is telling you that it
cannot find a class that it needs. This is very likely a classpath issue
(that's something that takes a while for new Java programmers to get used to).
Post your build.xml file and we may be able to offer more help af
Thanks. I'll try over there.
--
Charles Knell
[EMAIL PROTECTED] - email
-Original Message-
From: <[EMAIL PROTECTED]>
Sent: Tue, 2 Oct 2007 15:30:08 +0200
To:
Subject: AW: FOP task, what changed from 0.92beta to 0.94?
The fop task is not maintained by the Ant team.
I thi
I recently downloaded FOP version 0.94, upgrading from 0.92beta. My build.xml
file now fails when I execute the fop task, giving this error:
build.xml:105: java.lang.NoClassDefFound
Error: org/apache/xmlgraphics/util/Service
It seems that something has changed in FOP that breaks the Ant FOP task
Have a look at these two revised files from my earlier proposed solution. By
adding the namespaces to the root element in both insert.xml and web.xml, you
will get the output you want, and the namespace declarations appear only once,
in the root element of the output.
insert.xml
===
I downloaded the xmltask-v1.15.1.jar file and placed it in the lib subdirectory
of my ant installation.
I prepared this web.xml file:
html
text/html
I prepared this insert.xml file:
txt
text/plain
I then wrote this build.xml file:
I
Thanks to you and to Ruel.
Mea culpa, but I don't understand why some classes tacked on to the end of the
CLASSPATH would override the Saxon which is at the beginning, but they did.
I was trying out DITA (OASIS Darwin Information Typing Architecture) and I
tacked some classes for it onto the en
Pertinent facts:
Ant - version 1.7.0
JDK - version 1.5.0.06
I have a task that has been performing as expected for about five months.
Today, with no change in the version of Ant, the build.xml file, the JDK, the
stylesheet, or the XSLT processor, this error occurred for the first time (and
appe
Thanks again.
--
Charles Knell
[EMAIL PROTECTED] - email
-Original Message-
From: Dale Anson <[EMAIL PROTECTED]>
Sent: Tue, 24 Jul 2007 20:13:41 -0600
To: Ant Users List
Subject: Re: How can I capture a file's date to a property?
What those mean is that there are other
Thanks. That does it, but what's the story on this set of messages that are
displayed when I run the task?
Trying to override old definition of task antcallback
Trying to override old definition of task antfetch
Trying to override old definition of task assert
Trying to override old definition of
There are a number of problems with the example task:
- The opening and closing tag names do not match ("fileutil" vs. "fileutils").
- The tag is not closed.
Even after correcting for these, I get an error message from ant when I run the
target:
-
That sounds like what I need. I look into it later today. Thanks.
--
Charles Knell
[EMAIL PROTECTED] - email
-Original Message-
From: Rebhan, Gilbert <[EMAIL PROTECTED]>
Sent: Thu, 12 Jul 2007 12:48:51 +0200
To: "Ant Users List"
Subject: RE: How can I capture a file's da
I'm writing a target that will update a file. I'd like to preserve the
exisiting version of the file by renaming it and incorporating its date in the
file name.
I've have found several tasks for copying and renaming files and directories,
but no way to get the file's date-stamp. Am I simply not
Use the task.
--
Charles Knell
[EMAIL PROTECTED] - email
-Original Message-
From: <[EMAIL PROTECTED]>
Sent: Wed, 13 Jun 2007 15:08:15 +0200
To:
Subject: Edit XML-Files with Ant
Hi,
I'm using Ant to generate an update site from my RCP-project. In this
project I have
Consider this task:
The result of this tidies all the .htm files in ${base-dir}/sub1 and places
them in in "destdir". It ignores a .htm file in ${base-dir}.
I have elminated the possibility that the problem is in by running
this experimental target:
I am automating a process of turning MS Excel 2000 Workbooks into XSLT files
for producing reports from a database in Excel format.
I am at the point where I'm moving upstream in automating the process. I want
to prep the output from an Excel "Save As HTML" operation as a step in
converting the
O.K. I found what I was looking for, but it wasn't easy. If anyone else should
have this problem in the future, the description of the available properties is
at:
http://tidy.sourceforge.net/docs/quickref.html
The controlling property for this issue is not obvious from the name. It is:
"drop-f
I am working with the ant jtidy task for the first time. It produces output
that I didn't expect based on my experience using HTML Tidy embedded in my
programmer's editor (UltraEdit). Specifically, jtidy is adding its own
section and inserting class attributes from that section in elements
in
I have prepared a Java program to use regexes to swap a list of strings for
others in a text file. I'd like to create an Ant that would run the
program against a set of files located in a specific directory.
At first glance, it seems that I should be able to use the type and
the task to do t
Thanks.
--
Charles Knell
[EMAIL PROTECTED] - email
-Original Message-
From: Mark C. Stafford <[EMAIL PROTECTED]>
Sent: Fri, 18 May 2007 12:54:37 -0600
To: "Ant Users List"
Subject: Re: Re: Does anyone know where I can find jtiday.jar?
On 5/18/07, [EMAIL PROTECTED] <[EMA
The only download at that URL is jtidy-04aug2000r7-dev.zip. It does not contain
a file like org.w3c.tidy.ant.JTidyTask.
Does anyone know where this can be found, or do I need to know a magic word in
order to change something that is in that ZIP file into JTidyTask?
--
Charles Knell
[EMAIL PROTE
I've been Googling around and have found several references to the Ant JTidy
task. I've even found the source code to the task itself, but if I don't have
to download all the component files to build it, I'd be much happier.
Does anyone know where I can download the jtidy.jar file?
--
Charles
That's fine, but:
On what day (for your purposes) does a week start?
--
Charles Knell
[EMAIL PROTECTED] - email
-Original Message-
From: Satheesh <[EMAIL PROTECTED]>
Sent: Tue, 1 May 2007 17:16:50 +0530
To: "Ant Users List"
Subject: Re: How to set the next week start
On what day (for your purposes) does a week start?
Will you take holidays into account?
If so, what country's holidays will figure in?
Are there any local holidays that should be taken into account?
--
Charles Knell
[EMAIL PROTECTED] - email
-Original Message-
From: Satheesh <[EMAI
http://www.cenqua.com/fisheye/demo/browse/~raw,r=1.4/ant/docs/manual/CoreTasks/sequential.html
--
Charles Knell
[EMAIL PROTECTED] - email
-Original Message-
From: Farid Izem <[EMAIL PROTECTED]>
Sent: Tue, 20 Mar 2007 22:32:12 +0100
To: user@ant.apache.org
Subject: Questio
Thanks, I just noticed the oversight of omitting the unit attribute.
I solved the issue this way.
--
Charles Knell
[EMAIL PROTECTED] - email
-Original Message-
From: Joel Klein <[EMAIL PROTECTED]>
Sent: Fri, 09 Feb 2007 08:57:11 -0600
To: Ant Users List
I have a need to set the value of a property to the current fiscal year. For
this purpose, that means that when running a build in October, November, or
December, the value must be the current year +1. In any other month, the value
is the same as the current year.
I thought something like this
Investigate the ANT task.
--
Charles Knell
[EMAIL PROTECTED] - email
-Original Message-
From: Yadav Ganesh-C01503 <[EMAIL PROTECTED]>
Sent: Wed, 31 Jan 2007 16:32:35 -0500
To: "Ant Users List"
Subject: How to execute Dos Command (Wrap...) using Ant
Hello there,
I am tr
I went to the ANT site and found instructions on adding an FOP task to a build.
(http://xmlgraphics.apache.org/fop/0.93/anttask.html)
My environment is Win2K.
The example given at the site is:
My
Thanks. I'll just re-work the existing one and put it directly in the build
file.
--
Charles Knell
[EMAIL PROTECTED] - email
-Original Message-
From: Dominique Devienne <[EMAIL PROTECTED]>
Sent: Mon, 30 Oct 2006 13:42:34 -0600
To: "Ant Users List"
Subject: Re: Is it pos
I have a macrodef that I use in a number of build files. I now have a new
project where I'd like to use this macrodef, but I need to add an attribute to
the three defined in it. In a sense, I'd like to "subclass" this macrodef,
changing nothing but making an addition to the attribute list.
Can
Bingo!
Thanks. That's exactly what I wasn't seeing.
You've solved my problem.
--
Charles Knell
[EMAIL PROTECTED] - email
-Original Message-
From: James Abley <[EMAIL PROTECTED]>
Sent: Thu, 19 Oct 2006 15:46:38 +0100
To: Ant Users List
Subject: Re: Classpath failure ha
Thanks. I tried them both but didn't see anything I didn't expect to see. I am
still no closer to an answer.
=
Execute:Java13CommandLauncher: Executing 'C:\Program Files\Java\jdk1.5.0_06\jr
bin\java.exe' with arguments:
'-classpath'
'H:\SARS-reports-j\sars.jar;C:\oracl
My problem:
When running a build file, I get this error message:
[java] Error in FetchDataAsXML.getXML(): java.lang.ClassNotFoundException:
oracle.jdbc.driver.OracleDriver
The relevant sections of the build file:
I'm confused about the "outputproperty" attribute of the task. The
manual says of it, "The name of a property in which the output of the command
should be stored. Unless the error stream is redirected to a separate file or
stream, this property will include the error output."
My questions are:
I found a typo was causing my error. Thanks.
--
Charles Knell
[EMAIL PROTECTED] - email
-Original Message-
From: [EMAIL PROTECTED]
Sent: Thu, 28 Sep 2006 13:31:16 -0400
To: user@ant.apache.org
Subject: RE: Re: How to get debug info on java task failure
The %ERRORLEVEL%
The %ERRORLEVEL% value is 0, so I'm really no closer to understanding why the
execution of the class works at the command line and fails in Ant.
Is there a way to get more information from Ant?
--
Charles Knell
[EMAIL PROTECTED] - email
-Original Message-
From: Peter Reilly <[EMAI
I am executing a single task. I have the failonerror attribute set to
"true". It fails, but I don't have any information to work with. This is the
target.
SQL string is ${sql.string}
The output I get is: "BUILD FAILED H:\dev\java\buildj.xml:46
You are far more likely to get a useful answer if you post your question with a
relevant Subject: line. What you have done is to ask a new question by using an
email reply to an unrelated topic. This is called "highjacking a thread" and is
considered impolite on email lists.
Please re-post with
Use the "style" or "xslt" task (two-names, same function). Of course, use of
those presumes that you are handy with XSLT. If not, you may want to see the
XSL list hosted by MulberryTech.
--
Charles Knell
[EMAIL PROTECTED] - email
-Original Message-
From: [EMAIL PROTECTED]
Sent:
> Have you tried using -lib saxon.jar on the command line? This puts
> saxon first on the classpath, which makes Trax load it instead of the
> default JDK-provided XSLT engone.
Yes, to no effect.
As for the help with Plan B. Thanks, I've got that working on my computer
(which had no problem with
Last week I had a problem when installing ANT, a build file, and some
supporting files on three computers at my workplace. On two of the three
computers I was not able to force the task to use the XSLT transformer I
choose. At least that appeared to be the problem because the error messages
se
If anyone was still scratching his or her head over my inability to see what's
in front of me, please stop before you bleed. I've got it worked out.
--
Charles Knell
[EMAIL PROTECTED] - email
-Original Message-
From: [EMAIL PROTECTED]
Sent: Fri, 04 Aug 2006 13:18:32 -0400
To:
Thanks to everyone who contributed. I now know the design decision that lays
behind the functioning of .
My Java is only now having the rust knocked off it, so I'm chary of trying to
write a custom task for this purpose. I have been working on Plan B, creating
the intermediate XML file from whi
I'll have to think it over. It sounds reasonable at first glance. Thanks.
--
Charles Knell
[EMAIL PROTECTED] - email
-Original Message-
From: Tshepo Rachidi <[EMAIL PROTECTED]>
Sent: Fri, 4 Aug 2006 15:41:37 +0200
To: "Ant Users List"
Subject: RE: RE: Setting the value o
Your example shows exactly the limitation I'm trying to get around. There are
only two possible values that "hasMoney" can take in your example. Either
"hasMoney" is "true" or "hasMoney" is false.
I'm faced with a situation that calls for me to select the previous "business
day". In the U.S. bu
I've been testing the task and either it is very limited in its
functioning or I am carrying the wrong mental model into the exercise.
I work mostly in XSLT these days. There I can set the value of a variable by
testing any number of conditions and nested conditions using the
element.
appea
So far I have set up this configuration on four computers. Each is running
Win2K. Each has the JAVA SDK 5 installed in C:\Program Files (because that's
where Sun's installer puts it.) All environment variables are configured alike
in respect to the programs involved.
On two computers the setup
-Original Message-
> From: Ron Wheeler <[EMAIL PROTECTED]>
> Sent: Tue, 01 Aug 2006 08:44:40 -0400
> To: Ant Users List
> Subject: Re: Problem choosing XSLT processer with
OK, I'm back at work and the diagnostics switch worked as expected. I
redirected standard out to a file so I could examine it more easily. On my
computer (one that does use the XSLT engine I specified) the result showed an
XML section that described the XML parser, but there was no mention of XS
I'm at home now and not at work. I haven't used Ant on this computer before. I
opened a Windows command-line, switched to the Ant\bin directory and typed "ant
-diagnostics" at the prompt. The result was this:
Files\Java\jdk1.5.0_06\bin was unexpected at this time.
What have I done wrong here?
-
I'm having a problem with choosing an XSLT processor to use with the
Here is how I decided to do it. If the command-line parameter "span" is
supplied with the value "week", "start.date" is assigned the value of
"weekly.start.date". Otherwise, it is assigned the value of "daily.start.date".
--
Charles Knell
[EMAIL PROTECTE
is almost right, but it doesn't seem to have a means of testing the
value of a property. Of course, I may be missing something.
--
Charles Knell
[EMAIL PROTECTED] - email
-Original Message-
From: Joe Moore <[EMAIL PROTECTED]>
Sent: Fri, 21 Jul 2006 12:56:39 -0700 (PDT)
To:
I figured out I could do the date arithmetic in the task, so I' still
looking for a way to set the value of the argument I'm sending to the SQL
query. Is there some construct like setting the value of a variable in XSLT
using the element?
--
Charles Knell
[EMAIL PROTECTED] - email
-Ori
I'm using Ant to orchestrate a processing pipeline that begins with a query to
an Oracle database and ends with a file containing a report in HTML format.
One of the reports I have to produce comes in two flavors; daily and weekly.
These are distinguished by the lower end of the date range the S
Yes, that's exactly what I needed to know. Thanks.
--
Charles Knell
[EMAIL PROTECTED] - email
-Original Message-
From: Antoine Levy-Lambert <[EMAIL PROTECTED]>
Sent: Wed, 12 Jul 2006 23:54:35 -0400
To: Ant Users List
Subject: Re: XSLT default parameters and Ant-supplied
How can I set up my build.xml file to pass Ant command-line parameters to an
XSLT stylesheet without clobbering the default values defined in the stylesheet
in case a command-line parameter is not supplied?
I have an Ant task that performs an XSLT transformation. In the stylesheet I
have define
Thanks to all who replied. That's the answer I needed.
--
Charles Knell
[EMAIL PROTECTED] - email
-Original Message-
From: Grant Lewis <[EMAIL PROTECTED]>
Sent: Fri, 12 May 2006 21:01:35 -0400
To: Ant Users List
Subject: Re: Iterate over "filelist" with java task?
I gen
Thank you for your reply, but it answered a question I didn't ask. I want to
know what element can be the parent of a , not which elements a
can contain. Let me list some examples:
Is a a child of ?
Is a a child of ?
Is a the child of some other element?
--
Charles Knell
[EMAIL PROTECTED] -
Thanks, I am using 1.6.5. I'v checked the docs but there's something missing.
What is/are the parent element/s of the and the resulting task?
--
Charles Knell
[EMAIL PROTECTED] - email
-Original Message-
From: Grant Lewis <[EMAIL PROTECTED]>
Sent: Fri, 12 May 2006 15:35:37 -04
I have a project that requires me to do post-processing after an XSLT
transformation on a list of files. I accomplish this (for a single file) by
defining a "target" for each post-processing step. Each target contains a
"java" task that performs the processing.
Will it be necessary for me to cr
Thanks to you both.
The answer was, indeed, in the environment.
I copied the name of the %ANT_HOME% directory from the Windows explorer when I
was in the bin subdirectory. I accidentally copied the trailing path separator
"\". When the expression %ANT_HOME%\bin was expanded, it became
C:\apa
I have used ant on several occasions in the past, installing in on three or
four computers. I just installed it on my workstation at a new job this
morning. I have a build.xml file in the directory from which I call ant, but
with or without the build file, I get the following. Can someone tell m
"Antwort", meaning "answer", used by German speakers the way English speakers write "re:", which,
oddly enough is an abbreviation of a Latin phrase "in re", generally translated as "in the matter of".
--
Charles Knell
[EMAIL PROTECTED] - email
-Original Message-
From: Matthew Hughe
Thanks. It helps to know where to look.
--
Charles Knell
[EMAIL PROTECTED] - email
-Original Message-
From: Matt Benson <[EMAIL PROTECTED]>
Sent: Fri, 16 Dec 2005 13:13:06 -0800 (PST)
To: Ant Users List
Subject: Re: Access to OS environment variables?
--- [EMAIL PROTECT
Am I just looking in the wrong place, or is there no way to read or capture the
value of an operating system environment variable from within an ant build
file. For example. I would like to use the fop task, but in order to do so I
must create a property named "fop.dir" and enter the path to my
Here's my environment. I get the -version stuff just fine. Do you see any
significant differences?
OS: Microsoft Windows XP [Version 5.1.2600]
JAVA_HOME: C:\Program Files\Java\jdk1.5.0_03
ANT_HOME: C:\apache-ant-1.6.5
PATH:
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\PROGRA~1\COMM
How does your CLASSPATH read?
--
Charles Knell
[EMAIL PROTECTED] - email
-Original Message-
From: gekkokid <[EMAIL PROTECTED]>
Sent: Thu, 1 Sep 2005 21:31:30 +0100
To:
Subject: hello all :), trying to install ant
Hi,
I am trying to install Ant on a windows system, im h
Thanks. I suppose I'll use a batch file to temporarily set CLASSPATH. It's
ugly, but workable.
--
Charles Knell
[EMAIL PROTECTED] - email
-Original Message-
From: Antoine Levy-Lambert <[EMAIL PROTECTED]>
Sent: Mon, 04 Apr 2005 19:24:45 +0200
To: Ant Users List
Subject: Re:
I have the following:
- ant 1.6.2
- FOP 0.20.5
- WinXP Pro 2002 Service Pack 2
- FOP_HOME is defined as "C:\Program Files\Apache Software
Foundation\fop-0.20.5"
- CLASSPATH is defined as
"C:/apache-ant-1.6.2\lib\ant.jar;C:/apache-ant-1.6.2\lib\optional.jar;C:/apache-a
nt-1.6.2\lib\xercesImp
78 matches
Mail list logo