from Ant …
> I can use value="\\sharedir", but intuitively I thought to use the
> "location" attribute...
So does it work using value with the UNC path? If so why not just
use that?
--
Michael Ludwig
-
To uns
gSoup and then
apply an XSLT. Probably not worth the effort, though …
--
Michael Ludwig
-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org
Aleksey Tsalolikhin schrieb am 20.10.2011 um 08:58 (-0700):
> Hi. I'm trying to install Ant (binary), the fetch step is not
> working, I'm getting 403 Forbidden.
>
> I also got a warning that tools.jar was not found. Is this a critical
> dependency?
Only if you need something from tools.jar, lik
ertinent to
your question is like:
Build sequence for target(s) `x' is [z, x]
Complete build sequence is [z, x, y, ]
So one line for the specific build sequence for your target, another
one listing all targets.
Ultimately, I don't know. I've never given this much thought.
You ca
:: type C:\Users\MiLu\antrc_pre.bat
set ANT_ARGS=-logger mein.phantastischer.Logger
:: type C:\Users\MiLu\antrc_post.bat
set ANT_ARGS=
Also, see this thread:
AW: antrc & ant.conf files
http://marc.info/?l=ant-user&m=12111791
gt; uncertain, I don't know how to go about it.
Use a proper technology, like XSLT, the bloody best tool for XML
manipulation. (Unless you're dealing with absurdly large XML files,
of course. But even then, there are XSLT solutions.)
--
Michael Ludwig
Sam Wootton schrieb am 13.03.2011 um 12:53 (+):
>
> Michael , i think with opensuse its a bad idea to ignore the
> repository / software management way of downloading and installing
> software. the system can get in a real mess. its far better to let
> it put the software where it wants to.
pack it under /opt/ant or /usr/local/ant, whichever you prefer.
And don't bother with those errors, which may or may not result from bad
packaging, or who knows what.
--
Michael Ludwig
-
To unsubscribe, e-mail: user-unsubsc
Fawad Ali schrieb am 21.02.2011 um 15:29 (+0500):
>Is there anyway of accessing values from a property file so that I
> may take out all the variables to a saparate file.
Please check out the and tasks, notably the @file and
@append attributes. Might be what you're looking for.
Michael Ludwig schrieb am 20.01.2011 um 02:30 (+0100):
> What is special about JavaMail, JAF (Activation) and JDBC drivers that
> they cannot be loaded by any other classloader?
Just linking this to a thread I started on Tomcat-User (which did not,
however, clarify the issue for me):
ma
Laurence Mills-Gahl schrieb am 24.01.2011 um 00:56 (-0500):
> On 1/23/11 10:12 PM, Michael Ludwig wrote:
> > Laurence Mills-Gahl schrieb am 23.01.2011 um 21:27 (-0500):
> >>
> >> I have a list of centerid's and a "foreach" loop
> > Red flag goes up …
is available here
Take a look at the task, also occasionally useful to
produce diagnostic output.
--
Michael Ludwig
-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org
Michael Ludwig schrieb am 19.01.2011 um 13:51 (+0100):
> Patrick Martin schrieb am 19.01.2011 um 10:31 (+0100):
> > D:\tmp\build.xml:7: taskdef A class needed by class
> > org.apache.tools.ant.taskdefs.email.MimeMailer cannot be found:
> > javax/mail/MessagingException
>
il, JAF (Activation) and JDBC drivers that
they cannot be loaded by any other classloader?
--
Michael Ludwig
-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org
information.
--
Michael Ludwig
-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org
today where the same issue arose:
Mail task with mail.jar & activation.jar out of lib folder
r L 19.01.11 10:31+0100 Patrick Martin57 Mail task […]
L 19.01.11 11:19+0100 Patrick Martin87 ├─>
F 19.01.11 13:51+0100 Michael Lud
code which says " Bproject.setProperty("newtoken", result);" ,
> Bproject is the name of the project in B.xml.
There is no need to hardcode the name. You can refer to the currently
running project by simply saying "project". :-)
project.log("toll!");
pro
Jan C. schrieb am 19.01.2011 um 14:00 (+0100):
> what I meant is that I don't start the server from my java class so I
> can't call
> > embedded.destroy();
Which is why I tried to refer you to the
he.tools.ant.Main.startAnt(Main.java:218)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
It seems you have to use the main classloader, not a self-defined one. But I
might be wrong. And even if not, I don&
Jan C. schrieb am 19.01.2011 um 11:26 (+0100):
> I'm not starting the SimpleHTTPServer programmatically so I
> don't have any reference to the instance.
You don't have a reference, but you do start the server
programmatically. ;-)
> >>
> >>
> >>
> >>
> >> >> classname="org.a
Jan C. schrieb am 19.01.2011 um 10:17 (+0100):
> My JUnit test need a http server so I also start one in my test:
>
>
>
>
>
> classname="org.apache.axis2.transport.http.SimpleHTTPServer" >
> ...
>
>
>
> ...
>
>
>
>
>
> The problem I
Check that any custom tasks/types have been declared.
> Action: Check that any / declarations have taken place.
Please code up a *minimal* example that reproduces the error and post it
here.
Also, post the contents of the following e
At the command prompt, enter:
set java
Is JAVA_HOME set? If not, set it in your desktop using sysdm.cpl (enter
that in the little window that opens on hitting Windows-R), and be sure
to set it to:
C:\Program Files (x86)\Java\jdk1.6.0_21
Then, try again.
--
Michael Ludwig
Jo Support schrieb am 21.12.2010 um 11:43 (+0100):
>
>
> $newFrwVersion
>
> As you can see it thinks that "$newFrwVersion" is the value to be
> rendered inside the result file.
> Where am I doing wrong?
In not looking into the most basic kind of XS
Scot P. Floess schrieb am 17.12.2010 um 08:05 (-0500):
> Honestly, its been a while since I passed in params from an Ant
> script...one of the two should work...
At least one of them does work:
--
Michael
eboy.test schrieb am 01.12.2010 um 01:50 (-0800):
> I want something like
>
> e.g. ant -jar test.jar rundemo
>
> here rundemo is the ant target, which invokes a class from test
> package
Have you tried running ant -h ? It would point you to -lib.
Hi Mangesh,
Mangesh Moghe schrieb am 17.11.2010 um 15:17 (+0530):
> Finally able to solve the problem. Yes, ant 1.6.5 can not work with
> JDK 1.6 as far as javascript ant task is concerned. This is because
> ant 1.6.5 supports
files
your property file templates = our script config templates
your property files = our script config
--
Michael Ludwig
-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org
f you specify --cut-dirs=12 but the path is only two levels
> deep.
It'll flatten the structure, like melting butter in the pan.
> The mapper will currently behave in a not-my-business way like
> the regexp mappe
stuff in Ant, I feel that I'm missing some easy
way to solve this.
--
Michael Ludwig
-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org
he case in the problem Michael is
> trying to solve.
Well, these aren't Java files, but the requirement is the same.
I may not have specified it clearly enough, but what I want is what to
preserve the structure below the directories to copy, which is the way
the following UNIX utilities do
ol. I copied this, and produced another (otherwise pointless) sample
for illustrative and archival purposes.
${firefox.default.profile.dir}
--
Michael Ludwig
-
To unsubscribe, e-ma
Stefan Bodewig schrieb am 23.08.2010 um 06:05 (+0200):
> On 2010-08-23, Michael Ludwig wrote:
>
> > I'm wondering what's the difference between and .
> > Why are there these two construct? Aren't they functionally
> > identical?
>
> Ant contains a t
classpath, @sourcepath, @bootclasspath and @extdirs, all types?
http://ant.apache.org/manual/Tasks/javac.html
So are and interchangeable?
--
Michael Ludwig
-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
F
cause! I might be wrong, but I think this kind
of IO is simply referred to as "unbuffered IO", whereas "blocking",
"non-blocking" and "asynchronous IO" would involve device readiness.
--
Michael Ludwig
-
>
>
>
>
>
Same here, you can drop the and get the same result.
> if you like perl, you may like (j)ruby or groovy
> for scripting in ant
> Sometimes it's easier to write a small script before
> using too much clumsy xml or writing a new task.
>
Gilbert Rebhan schrieb am 31.07.2010 um 00:47 (+0200):
> Whenever some kind of xml processing occurs within your ant workflow
> i recommend the use of the xmltask[1].
> From your first posting i assume you have some xml like :
>
>
>
> antlr-2.7.6.jar antlr-2.7.6.jar antlr-2.7.6.jar
> aopallian
rint output, possibly sorted
--
Michael Ludwig
-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org
kind of dependencies for the actual
> building of source code.
Would you recommend it?
Thanks for your input!
--
Michael Ludwig
-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org
ible, but I think it would require
> changes in Ant to possibly restart a new VM using new JARs for
> example, or at least rerun itself into a completely different class
> loader (and a way to update JARs already in use on Windows). Didn't do
> it myself. --DD
If it turns out to be t
Matt Benson schrieb am 01.07.2010 um 10:26 (-0500):
> On Jul 1, 2010, at 9:52 AM, Michael Ludwig wrote:
> >Wouldn't it be nicer to have , which is still young and
> >flexible, have augment/@refid to refer to an existing reference, and
> >augment/@id to present an
it can be referred to by
other tasks?
Or is there something obvious that I'm overlooking?
--
Michael Ludwig
-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org
ang.StackOverflowError
Looks like a text replacement loop, which shouldn't be run. Look here:
http://marc.info/?l=ant-dev&m=113864631015957
Upgrade Ant.
--
Michael Ludwig
-
To unsubscribe, e-mail: user-unsubscr...@ant.apa
ss gets
> re-initialized on every invocation. Is there a way to make it not do
> that?
Don't get it. Please specify your requirement more exactly.
--
Michael Ludwig
-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
ill tell you what will work and what will not.
--
Michael Ludwig
-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org
But this is starting to feel awkward ("von hinten durch die Brust ins
Auge", don't know in English), and I'm sure there is an easier way to
achieve what you want.
--
Michael Ludwig
-
To unsubscr
:\Program Files becomes
> C:\Program Files
I doubt the latter workaround is desirable, or even, for all practical
purposes, feasable ;-)
--
Michael Ludwig
-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additiona
t; program fubar was installed at C:\Program Files (C:\Program
> > Files\fubar) which would map to C:\PROGRA~1\fubar
--
Michael Ludwig
-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org
[echo] G:\dev\Ant\dir with spaces\eins.txt
[echo] G:\dev\Ant\dir with spaces\zwei.txt
[echo] So it works using .
[echo] G:\dev\Ant\dir with spaces\eins.txt
[echo] G:\dev\Ant\dir with spaces\zwei.txt
[echo] G:\dev\Ant\dir with spaces\d r e i.txt
[echo] And it also
y, I think this is what this is all about. Can you modify
step1prog to output relevant information in a structured manner, such as
to a property file, or to XML?
If not, you could try some regex hacking such as in this example:
But does not appear to sup
rst group
*greedily* (terminus technicus) captures the entire string until
the end of the line. You'd probably benefit from reading up on
Java regular expression syntax.
--
Michael Ludwig
-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org
x27;s* System.getProperties() which is in the Ant
box, and even comes out of it if asked to :-)
--
Michael Ludwig
pgpRu8gLWsQRS.pgp
Description: PGP signature
the
> script?
I'm probably missing something, but what's wrong with the following,
which is provided by Ant out of the box:
--
Michael Ludwig
-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For addi
che Ant version 1.8.0 compiled on April 20 2010
After upgrading to 1.8.1, you forgot to set ANT_HOME to the new value.
It's still pointing to your 1.8.0 installation.
--
Michael Ludwig
-
To unsubscribe, e-mail: user-unsubs
\,,,/
(o o)
--oOOo-(_)-oOOo--
--
Michael Ludwig
-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org
7;t know. I wouldn't expect that to happen. Is this behaviour specific
to Ant running the task?
> I am using ant1.7.1
Maybe worth trying with 1.8.1.
--
Michael Ludwig
-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.
n't belong there.
See Ant manual: "Concepts and Types" > "Targets and Extension-Points"
--
Michael Ludwig
-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org
ot;
> verbose="true"/>
> The scp key auth is set up properly - I don't have any problems with
> running ssh or scp from the commandline (I run them with the same user
> I run ant)
Are there any clues in the verbose SSH output?
--
Michael Ludwig
Due to that
> fact, relative paths such as tempDir="obj" are created at the wrong
> location!
Would rearranging the build files solve the problem? What about moving
productA/build.xml two levels up to the directory containing products/
ependency on the lib directory for tasks that do
not need it?
--
Michael Ludwig
-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org
l suport for ssh in ant runinnig in windows ?
Install PuTTY, read the documentation, and set up plink to work with
your your CVS client.
http://www.chiark.greenend.org.uk/~sgtatham/putty/
http://hurring.com/scott/howto/cvs_ssh/
Mi
Ernst de Haan schrieb:
Michael Ludwig-4 wrote:
That said, there is a potential for using less screen real estate.
I would see that as an improvement. It may be a matter of taste.
True, it is on one hand a matter of taste, but on the other hand it is
related to how much data humans can
file does not appear on
the server.
Read the doc for the task, especially what property/@location
evaluates to. Add these to check the values:
If your local computer is Windows, this might not be adequate. Even if
it is UNIX, it might not be adequate.
--
Mich
ld be nice.
Progessbar on the console? - Michael Ludwig - org.apache.ant.user
http://markmail.org/thread/gjazyu7gzwzcmhgh
--
Michael Ludwig
-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-ma
ch for
Windows and put it on the PATH. You can get one from either Cygwin or
GnuWin32.
http://gnuwin32.sourceforge.net/packages/patch.htm
--
Michael Ludwig
-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional co
jhoomshar...@netscape.net schrieb am 10.07.2009 um 21:43:45 (-0400):
>
> I have pom.xml, below is snippet of my pom.xml file:
You should learn to start a thread with a clean, new message instead of
replying to an unrelated existing one and changing the subject line.
Michael
rom its depends attribute, you
might think that first target C, then B and then A is executed. Wrong!
C depends on B, and B depends on A, so first A is executed, then B,
then C, and finally D.
http://ant.apache.o
d target/@depends work for you? You would then factor out your
series of tasks to a different target. Isn't a target just a processing
unit placed in the dependency graph?
...
...
Michael Ludwig
-
To unsu
andle the (pointless)
> BOM code correctly.
That's also my experience.
Michael Ludwig
-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org
e to accomodate this.
> As you can see, my knowledge of the topic is quite limited, but
> hopefully this might help a little nonetheless. --DD
Less limited than mine - good input, thanks!
Michael Ludwig
-
To unsubscribe, e-
time around. Whenever the update makes a difference on
the screen, the screen is also updated.
Would that be very complicated to do in Ant?
Michael Ludwig
-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For ad
China Creatxr schrieb am 16.06.2009 um 14:27:37 (+):
> Does anyone find the way to run the utf-8 formated SQL scripts which
> with BOMs by Ant now? Thanks.
The task has an @encoding attribute. Set sql/@encoding = 'UTF-8'
and see if that helps, which it should do.
Steve Loughran schrieb am 18.06.2009 um 16:54:11 (+0100):
> Michael Ludwig wrote:
> >Ant, however, goes one step further: It will remove a write-protected
> >file, which will not work using Windows tools without force, and it
> >will even recursively remove a write-protected
Steve Loughran schrieb am 16.06.2009 um 16:47:55 (+0100):
> Michael Ludwig wrote:
> >Okay, so you were talking about Java limitations in general, not Java
> >limitations within the context of an Ant extension?
>
> exactly.
Thanks for clarifying.
> >What you're
Steve Loughran schrieb am 15.06.2009 um 12:40:59 (+0100):
> Michael Ludwig wrote:
> >Steve Loughran schrieb am 12.06.2009 um 11:49:48 (+0100):
> >
> >>we do strive to be more declarative than fully procedural languages,
> >>we don't have loops and so l
t;in Ant extensions (written in Java)".
So what are these limits?
Michael Ludwig
-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org
> as that may sound. Unifying the codebase in that way lets you do the
> simple, such as display the dependencies in the application about box
> to the complex such as easily toggle aspectj load time weaving.
Okay :-) I'll try to keep this in mind - the need will certainly arise,
it'
itely slowed mind you, but just like Make it's not going away any
> time soon. Gradual obsolescence is normal in this field after all :)
Convinces me to make a greater in investment in learning Ant!
Michael Ludwig
-
To
oes syntax highlighting and automatic indentations
> which greatly helps me create my build.xml file.
Me too. Just discovered "dit" and "dat". See ":help it", ":h at", ":h
tag-blocks". But you probably knew this.
Michael Ludwig
-
ng wasn't that mainstream, you
> sat in front of the IDE and debugged. Now you add tests and wait for
> email from the CI tool.
Thanks for these historical insights!
> >(Still no Perl.)
>
> There is a bit of perl in An
as there are Java
implementations of these languages. (Still no Perl.)
Michael Ludwig
-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org
like, say, Python
or Perl; but painstakingly recreating the XML structure from the API
is even harder for the eyeball.
But of course, this usage may have its places and applications.
Michael Ludwig
-
To unsubscribe, e-mail: user-uns
n't think it is).
Wrapping your mind around the Ant way of doing things is probably the
best thing you can do. Where it feels too awkward, use the extension
interface to write an Antlet.
Michael Ludwig
-
To unsubscribe
it might simply not have been kept in
sync with the code. Attachments work as advertised, albeit with certain
limitations. So I can't see a way to specify the MIME type for
attachments, but then, well, who cares?
Michael Ludwig
--
/deployment/jar/update.html
For programmatic usage, I'd give the following classes a try, which
should allow you to hook in a filter to achieve what you want:
* java.util.zip.ZipInputStream
* java.util.zip.ZipOutputStream
Michael Ludwig
ith?) or, more likely, the
shell script you're using to launch it.
Michael Ludwig
-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org
ntlib declaration) and Ant's being instructed where
> to look for said definitions (the namespace or other declaration(s))
> in your buildfile.
Thanks for this systematic explanation.
Michael Ludwig
-
To unsubscribe, e
it in
C:\Programme\Java\jre6\lib\tools.jar
Apache Ant version 1.7.1 compiled on June 27 2008
Because that's a JRE. But if I use the JDK, no warning.
C:\dev\Java :: C:\Programme\Java\jdk1.6.0_11\bin\java.exe -jar
\jlib\ant-1.7.1\lib\ant-launcher.jar -version
Apache Ant version 1.7.1 compiled on J
t;antlib:" namespace URI scheme laid out in
the manual is similar to such auto-lookup, but requires additional
configuration. I guess that's what you were pointing me to?
Michael Ludwig
-
To unsubscribe, e-mail: user-un
his to run:
It could also have been:
Is there some auto-lookup feature for classes that attempts dynamic
class loading for something like , i.e. element name
corresponding to classname?
Or did you just omit the for brevity?
Michael Ludwig
--
Francis Galiegue schrieb am 07.05.2009 um 23:03:44 (+0200):
> Le Thursday 07 May 2009 22:41:18 Michael Ludwig, vous avez écrit :
Thank you all for your quick response.
> > * http://ant-contrib.sourceforge.net/
> > The download link points to sources for cpptasks.jar.
On http://
ad link points to sources for cpptasks.jar.
Maybe just temporary errors?
If not, where can I get the sources for ant-contrib.jar?
Michael Ludwig
-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional command
; ant -f saxon.xml -lib C:\jlib\saxon9-ant.jar -lib C:\jlib\saxon9.jar
Michael Ludwig
-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org
for bringing this gotcha to my attention.
This, however, doesn't work:
ant -f saxon.xml -lib C:\jlib\saxon9-ant.jar;C:\jlib\saxon9.jar
Whereas this does:
ant -f saxon.xml -lib C:\jlib\saxon9-ant.jar -lib C:\jlib\saxon9.jar
Michael Ludwig
-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org
okens, two of which probably inexistent as
directories. Nothing would work.
Michael Ludwig
-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org
ml -lib c:\jlib\saxon9-ant.jar -lib C:\jlib\saxon9.jar
Michael Ludwig
-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org
S=-v
call ant -v -f ant-delete-2.xml
set test_dir=C:\temp\DeleteTest
pushd %test_dir%
attrib /s /d +R
attrib /s /d
popd
call ant -v -f ant-delete-2.xml clean
echo on
dir /s /b %test_dir%
@echo off
echo Alles futsch ...
endlocal
So what Ant does seems to be a recursive and unconditional application
of wha
Ant (version 1.7.1), or more precisely: Ant's Delete task merrily
deletes write-protected files and directories on Windows XP that cannot
be deleted using the DEL (without /f) and RD commands from the cmd.exe
console.
In cmd.exe, type:
more > ant-delete.xml
98 matches
Mail list logo