Oops. I meant Rob, of course.
On 18/06/2013 4:34 PM, Bruce Atherton wrote:
You are right that it is inefficient, but it is easy to understand. If
you want to get efficient, you could create the main.jar with
inclusions of [1] using the src attribute for the other jars.
As for the manifest
7;t a problem when you are creating a specific
JAR file. Presumably Earl knows what the combined manifest should look like.
[1] http://ant.apache.org/manual/Types/zipfileset.html
On 18/06/2013 11:53 AM, Earl Hood wrote:
On Tue, Jun 18, 2013 at 11:54 AM, Bruce Atherton wrote:
It is fairly trivi
It is fairly trivial to do. In your main jar target:
1. create a temporary directory
2. run the unjar task
3. jar up your main jar, including the contents of the temporary
directory
4. delete the temporary directory
See http://ant.apache.org/manual/Tasks/unzip.html for docs on
Which might be a problem on some systems, as sometimes umask is a
built-in shell command.
Commands to find out where umask is: "which umask", "type umask".
Even if it is built in to the shell, it may still be available as an
executable on your system. Try looking in /bin, /sbin, /usr/bin, and
Not quite.
The former will match any files. The latter will only match a file with
a period in the name. Microsoft provides a shortened 8.3 version of all
long file names but I don't believe there is any way to get that
shortened name from Java. So not the same thing on any modern platform I
I thought I would let people here know that there is some discussion on
the Developers list about possible future directions of Ant. Perhaps
some people here would like to join the Dev list, at least temporarily,
so that they could contribute their thoughts.
Briefly, some of the ideas that hav
On 04/01/2012 10:16 AM, Raja Nagendra Kumar wrote:
intent is to automate the viewing of the Server Logs after the server
is started through ant script..
I can write a ant task which opens the file and prints to the console...
as suggested by you, usage of exec would any way makes the ant scrip
On 04/01/2012 1:33 AM, Raja Nagendra Kumar wrote:
If we like to open the log file after tomcat starting.. what is the best way
to see the content coming in dos console... as and when some thing is
written to log file..
I don't think there is a way to do this strictly with Ant tasks (I would
h
If I understand you correctly, you want to take a file that looks to
contain the output from an Ant run and extract valid XML from it, is
that correct?
If so, there are two parts you need in a filterchain. The first is
something to strip the "[api] " tags from the beginning of each
line.
ot be
included there.
--glenn
On Sun, May 30, 2010 at 19:27, Bruce Atherton wrote:
If you read that section again, you'll see that these are the steps for
someone building Ant from source code. You are not doing that, so you can
ignore it.
On 30/05/2010 2:31 PM, Raul Miranda
On 30/05/2010 11:27 AM, Bruce Atherton wrote:
I realized that I screwed up two ways with this answer. First, my
intention was 'resultproperty="${result}"' rather than as written. But
this won't work either because the PropertyHelper will just give back
the literal
s this may seem to be a trivial thing for most of you but it is
taking the toll on me. I a great believe I would appreciate your
advice to have Ant built.
Thanks a lot
Raul
- Original Message ----- From: "Bruce Atherton"
To:
Sent: Sunday, May 30, 2010 8:28 PM
Subject:
As the manual says, the details of the short story are available in the
rest of the document. In particular, most of the list items in the short
story have a link that leads you to details about that step. If you want
to know what dest=system represents (many don't and describing it would
just
On 27/05/2010 2:04 AM, jan.mate...@rzf.fin-nrw.de wrote:
Please have a look at https://svn.apache.org/repos/asf/ant/sandbox/autoconf/
Maybe that could help.
But he still has a call to the setter even if it is autoconfed.
Note that setting spawn and resultproperty are mutually exclusive. If
There are instructions on the Install page for how you set those
environmental variables[1][2][3], at least within a command shell.
If you want to set them up to be available across all command shells,
then that will depend on your operating system. You don't tell us which
operating system you
The reason is that you have only defined your sets of directories. They
aren't resolved until you use them. Try doing something with the dirset
and see if you get your exception. I used:
classpath="." >
and got:
Buildfile: build.xml
BUILD FAILED
/sand
Hi, there.
Generally, you should ask for help with Ant on the Ant Users List. I've
cced the list on this email so that others can offer you their help. If
you don't want to join the mailing list, you can follow any replies
through the web archive[1].
Before I answer your specific questions,
[EMAIL PROTECTED] wrote:
Is that ok?
http://svn.apache.org/viewvc/ant/core/trunk/docs/manual/install.html?view=diff&r1=577182&r2=577183&pathrev=577183
Wow, quick work. Thanks, Jan, that looks great. I have a few minor edits
and wanted to get the subdirectory info in there, but I'm having
Sub
Sorry, I just noticed this response that was posted a few days ago and I
thought it needed addressing.
Varuna, the answer to your question is that you most likely want the
file ant-current-bin.zip. That contains the zipped-up compiled version
of ant that you can run as soon as you have unzippe
It is entirely possible that the output never reaches Ant. The standard
C library is typically set up to buffer data on the standard file
handles, for efficiency purposes.
To get around this, you could:
1) do a flush() on the stdout and stderr streams before the
segmentation fault (assuming
Better to adopt the Way of Ant (tm) rather than fighting against it.
Think of your problem this way, and restructure your build file to match:
What you want to do is to put your article information into your
database if there are any articles available.
Before you can do that, you need to make
True, if your properties file has embedded ant properties that you
expect to be replaced, what you will get back when you regenerate the
file is not the property but the replacement value. This is still useful
as a properties file, though, just not as maintainable as the original
would have bee
Actually, if you wanted to do it programatically in code and you could
guarantee that each line had no more than one token, you could probably
make it work by creating regular expressions. Here is some pseudocode:
for each line in the template file
pull out the token name from the lin
It is difficult to tell what you are trying to accomplish here. Are you
trying to switch only directories, or do you also want file-level filtering?
For directories, there is a slight impedance mismatch you need to deal
with between the javac and the javadoc tasks. You can reuse sets of
direct
It may be including it, but it isn't because of the includes attribute.
All excludes happen AFTER the includes when dealing with PatternSets,
which the FileSet is creating for you with its includes and excludes
parameters.
You can test this with a simple build script:
Adam Mlodzinski wrote:
Unfortunately, my original question (how do you get a of
directories based on the presence of a file (or other directory) within
that directory?) still stands.
I'm afraid the answer is that you need a new selector, a combination of
a type selector and a filename selector. I
26 matches
Mail list logo