t i noticed was that one of the jars had
1) no entries for the directories themselves
2) items out of alphabetical order.
Don't know if that confused the ant jar task or not, not sure why it
would be different between windows and linux tho.
Is there any chance you can distill
't know if that confused the ant jar task or not, not sure why it
> would be different between windows and linux tho.
Is there any chance you can distill some sort of example project out of
this that exhibits what you have observed?
Stefan
-
t are
being overwritten.
Are there any "\"s reported as part of the file names?
I didn't see anything like that
Is it possible that on windows, there is some problem with directory
separators, maybe / vs \ that is causing the jar task to think these
are new files. Or perhaps somethin
-d parameter, ant outputs a
> much longer list of files it is copying, including files that are
> being overwritten.
Are there any "\"s reported as part of the file names?
> Is it possible that on windows, there is some problem with directory
> separators, maybe / vs \ that is
with the -d parameter, ant outputs a much
longer list of files it is copying, including files that are being
overwritten.
So on linux it is working as expected, but windows does something different.
Is it possible that on windows, there is some problem with directory
separators, maybe / vs \
On 2018-10-02, Bruce Alspaugh wrote:
> As requested, I've created a new issue.
Thank you.
> Is there some reason why Ant does not use the JDK's jar tool?
Most of them are historical. For many years the archives created by the
jar tool simply have not really been valid ZIP files - actually
java.
ew options to the jar tool:
https://docs.oracle.com/en/java/javase/11/tools/jar.html
I would like to use the --module-version and --main-class options with
Ant's Jar task, but I could not find them in the manual:
https://ant.apache.org/manual/Tasks/jar.html
I can accomplish this usi
On 2018-10-01, Bruce Alspaugh wrote:
> Java 9 and later add several new options to the jar tool:
> https://docs.oracle.com/en/java/javase/11/tools/jar.html
> I would like to use the --module-version and --main-class options with
> Ant's Jar task, but I could not find t
Java 9 and later add several new options to the jar tool:
https://docs.oracle.com/en/java/javase/11/tools/jar.html
I would like to use the --module-version and --main-class options with
Ant's Jar task, but I could not find them in the manual:
https://ant.apache.org/manual/Tasks/jar.ht
thenriks...@gmail.com]
> Sent: Saturday, October 19, 2013 4:44 PM
> To: user@ant.apache.org
> Subject: Jar Task Manifest Attribute
>
> Hello,
>
> The documentation for the Jar task
> (http://ant.apache.org/manual/Tasks/jar.html) indicates that the manifest
> attribute can
ase "added through a fileset".
All my very best,
Rob
--
Rob Echlin, Documentation Systems Architect, Wind River
-Original Message-
From: Kris Henriksson [mailto:kthenriks...@gmail.com]
Sent: Saturday, October 19, 2013 4:44 PM
To: user@ant.apache.org
Subject: Jar Task Manifest At
Hello,
The documentation for the Jar task
(http://ant.apache.org/manual/Tasks/jar.html) indicates that the
manifest attribute can be set to "the name of a jar added through a
fileset". However, I can't get this to work, and can't find an example
of this usage anywhere. When I
Thanks, Peter!
Zsolt
-Original Message-
From: Peter Reilly [mailto:peter.kitt.rei...@gmail.com]
Sent: Wednesday, April 15, 2009 3:21 PM
To: Ant Users List
Subject: Re: jar task: update and service
The code for jar does not currently check if there are differences between the
:
> Hello Peter,
>
> Could you find something?
>
> Thanks!
> Zsolt
>
>
> -Original Message-
> From: Peter Reilly [mailto:peter.kitt.rei...@gmail.com]
> Sent: Friday, April 03, 2009 7:04 PM
> To: Ant Users List
> Subject: Re: jar task: update and service
&
Hello Peter,
Could you find something?
Thanks!
Zsolt
-Original Message-
From: Peter Reilly [mailto:peter.kitt.rei...@gmail.com]
Sent: Friday, April 03, 2009 7:04 PM
To: Ant Users List
Subject: Re: jar task: update and service
That does sound like a bug.
I will look into it.
Peter
Hello,
Here is what I tried:
-Original Message-
From: Knuplesch, Juergen [mailto:juergen.knuple...@icongmbh.de]
Sent: Friday, April 03, 2009 4:42 PM
To: Ant Users List
Subject: AW: jar task: update and service
Please post an example of
Thank you very much!
Zsolt
-Original Message-
From: Peter Reilly [mailto:peter.kitt.rei...@gmail.com]
Sent: Friday, April 03, 2009 7:04 PM
To: Ant Users List
Subject: Re: jar task: update and service
That does sound like a bug.
I will look into it.
Peter
2009/4/3 Kúti Zsolt :
>
That does sound like a bug.
I will look into it.
Peter
2009/4/3 Kúti Zsolt :
> Hi,
>
> Accomplishing a jar task, I want to update my jar with a service element.
> Service entry does appear on first creation of the jar, but update attribute
> of the jar task does not seem t
Please post an example of what you do
--
Jürgen Knuplesch
-Ursprüngliche Nachricht-
Von: Kúti Zsolt [mailto:kuti.zs...@prolan.hu]
Gesendet: Freitag, 3. April 2009 15:18
An: user@ant.apache.org
Betreff: jar task: update and service
Hi,
Accomplishing a jar task, I want to update my
Hi,
Accomplishing a jar task, I want to update my jar with a service element.
Service entry does appear on first creation of the jar, but update attribute of
the jar task does not seem to work.
Can anybody confirm this?
Is it a feature or a bug?
Thanks!
Zsolt
hat works:
>includes="**/*.java"* />
>
>
>
>
> But suppose I change just one small thing. From this:
> includes="**/*.java"
> To *this*:
> includes="**/*.xml"
>
> Suddenly now, the jar task collapses the directory structure.
>
&
java"
To *this*:
includes="**/*.xml"
Suddenly now, the jar task collapses the directory structure.
On Tue, Jan 20, 2009 at 3:25 PM, Mitch Gitman wrote:
> I'm using a fileset as a nested element of the jar Ant task. When the
> fileset consists of .class files or .java fi
e XML files or
properties files, the archiving collapses the directory structure:
* com.mycompany.myproject
* SomeProperties.properties
Why is the jar task doing this collapsing and how do I avoid it?
Service(Service service) {}
> >>
> >> the new type should work.
> >>
> >> The reason that does not work is that the Sevice class does
> >> not extend Task
> >> and using will cause ant to use a proxy class, which will
> >> not match the addConfigur
he reason that does not work is that the Sevice class does
>> not extend Task
>> and using will cause ant to use a proxy class, which will
>> not match the addConfigured signature.
>>
>>
>> Peter
>>
>>
>> On Thu, Sep 11, 2008 at 1:03 PM, John5342 <[EM
atch the addConfigured signature.
>
>
> Peter
>
>
> On Thu, Sep 11, 2008 at 1:03 PM, John5342 <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > Thanks for the reply.
> >
> >>Does it produce a classpath??
> >>
> >>What do you expe
will
not match the addConfigured signature.
Peter
On Thu, Sep 11, 2008 at 1:03 PM, John5342 <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Thanks for the reply.
>
>>Does it produce a classpath??
>>
>>What do you expect should the jar task do with the element?
>
&
Hi,
Thanks for the reply.
>Does it produce a classpath??
>
>What do you expect should the jar task do with the element?
I explained in my first email but will clarify.
My aim is to create an enhanced service element for the jar task. I
subclassed the Service class because i know the
Hello,
The error you get tells simply, that your created task is not an allowed
subelement of the jar-task.
You run into a syntax error.
It is not possible to change the jar task (or any other task) by adding your
own tasks as subelements.
Probably you have to write your own jar-task, that
Hi,
I have a rapidly evolving project which contains a large and varying number
of service providers. I was hoping to create to create a more specialized
version of the service element that automatically scans for providers in a
give classpath but have run into some trouble asuming what i want to
Robert Koberg wrote:
Hi,
I am trying to use the nested service element in the jar class. It
produces a META-INF/service rather than META-INF/services:
This is be fixed in Ant 1.7.1, which is shortly to go into beta release
https://issues.apache.org/bugzilla/show_bug.cgi?id=41201
--
Steve
Hi,
I am trying to use the nested service element in the jar class. It
produces a META-INF/service rather than META-INF/services:
/**
* Write SPI Information to JAR
*/
private void writeServices(ZipOutputStream zOut) throws IOException
{
Iterator serviceIterator;
Yeah, that's not going to work. You can't include jars inside other
jars and expect them to be found. Unless you use something like
one-jar. http://one-jar.sourceforge.net/
On Sun, 2006-12-24 at 20:28 -0500, Laurent Morissette wrote:
> Hey everybody,
> I'm doing a project under eclipse 3.2 and
Hey everybody,
I'm doing a project under eclipse 3.2 and i'm trying to write an ant file
that can be used on any other project and i'm having some troubles :)
So, to cut short on chit-chat, here my project structure:
-src folder with some sub packages
-lib folder containing tird party librairies s
Hey everybody,
I'm doing a project under eclipse 3.2 and i'm trying to write an ant file
that can be used on any other project and i'm having some troubles :)
So, to cut short on chit-chat, here my project structure:
-src folder with some sub packages
-lib folder containing tird party librairies s
[EMAIL PROTECTED] wrote:
If you have a look at the manifest-spec [1], you'll see
newline : CR LF | LF | CR (not followed by LF)
So the use of the windows line ending CR-LF is valid - on Unix, too.
There's some more history on this in one of the bugs (sent to me as part
of a discussion
---
>Von: Noel Sebastien (BIL) [mailto:[EMAIL PROTECTED]
>Gesendet: Mittwoch, 30. August 2006 10:16
>An: Ant Users List
>Betreff: Jar task : Manifest File ends with Windows ending '\r'.
>
>Hello
>Am I right to say that there is a little bug in the Jar task
>about
Hello
Am I right to say that there is a little bug in the Jar task about generating a
manifest windows like on any platform (each line ends with \r\n instead of \n
only in Unix). ?
I am using Ant 1.6.5 and the jar task under Sun Solaris and my manifest
contains \r\n on each line
Original-Nachricht
Datum: Thu, 31 Aug 2006 14:02:38 +0100
Von: Steve Loughran <[EMAIL PROTECTED]>
An: Ant Users List
Betreff: Re: Jar task : Manifest File ends with Windows ending \'\\r\'.
> Classpath spec says it can be one of \n , \r\n or \r
>
&g
Noel Sebastien (BIL) wrote:
Having backwards compatibility (default behavior) and adding an attribute to
choose the eol style of the manifest fits to me perfectly.
That is the answer of my problem, if I understand that the next release of Ant
will include it (which release : Ant 1.7.0 or 1.7.1
-
From: Antoine Levy-Lambert [mailto:[EMAIL PROTECTED]
Sent: mercredi 30 août 2006 20:40
To: Ant Users List
Subject: Re: Jar task : Manifest File ends with Windows ending '\r'.
Hello Matt,
I am -1 to change the way ant stores manifests. At least if you want to change
something, do not
, Windows users of jars built under Unix will
complain. \n without \r under Windows is displayed in notepad as a square.
Regards,
Antoine
Original-Nachricht
Datum: Wed, 30 Aug 2006 09:10:19 -0700 (PDT)
Von: Matt Benson <[EMAIL PROTECTED]>
An: Ant Users List
Betreff: Re: Ja
--- Conor MacNeill <[EMAIL PROTECTED]> wrote:
>
>
> Antoine Levy-Lambert wrote:
> > Hello Sebastien,
> >
> > I am not aware of this. It would be a bug if :
> >
> > a) it is contrary to the specification of jar
> files and of manifests
> >
> > or
> >
> > b) it causes the jar files to be disfun
Antoine Levy-Lambert wrote:
> Hello Sebastien,
>
> I am not aware of this. It would be a bug if :
>
> a) it is contrary to the specification of jar files and of manifests
>
> or
>
> b) it causes the jar files to be disfunctional
>
> Actually, it makes sense that the format of the manifest fi
+0200
Von: "Noel Sebastien \\(BIL\\)" <[EMAIL PROTECTED]>
An: "Ant Users List"
Betreff: Jar task : Manifest File ends with Windows ending \'\\r\'.
> > Hello
> > Am I right to say that there is a little bug in the Jar task about
> generating the
> Hello
> Am I right to say that there is a little bug in the Jar task about generating
> the manifest file under Windows format on any platform (each line ends with
> \r\n instead of \n only in Unix). ?
> I am using Ant 1.6.5 and the jar task under Sun Solaris and my manifest
When I specify a value for the "whenempty" attribute of the jar task, a
warning is generated saying "JARs are never empty, the contain at least
a manifest file". This means that this attribute never has any effect!
What's even worse is that it means that the default b
-
From: Barak Yaish [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 22, 2006 5:53 AM
To: Ant Users List
Subject: RE: Question regarding the Jar task
It's me again.
There is something bothering me - when I'm running the ant script written
below (from my previous mail), I don
Barak Yaish
Sent: ?? 22 ?? 2006 10:30?
To: Ant Users List
Subject: RE: Question regarding the Jar task
Hello again,
Here is the target I configured in the build.xml, but it doesn't seems to be
work:
er /tmp has the
new value "do_not_allow_mirror".
Can you advice on that, please?
Thanks,
Barak.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: ?? 22 ?? 2006 10:04?
To: user@ant.apache.org
Subject: AW: Question regarding the Jar task
Because e
ruar 2006 08:33
>An: user@ant.apache.org
>Betreff: Question regarding the Jar task
>
>Hello all,
>
>Is it possible using the Jar task to add a file to a specific
>location in a jar file?
>For example, if there is a jar containing a folder named z
>inside a folder name
Hello all,
Is it possible using the Jar task to add a file to a specific location in a jar
file?
For example, if there is a jar containing a folder named z inside a folder
named x (/x/z). How should I use the Jar task to add some file into the z
folder inside the jar file?
Thanks,
Barak.
r:
> > jar -tvf npacejb.jar
> >
> > If that shows the path in the jar as meta-inf then use:
> >
> >
> >
> >
> > If you have a manifest already in the ${src}/classes/
On Tuesday 17 January 2006 6:49 am, Guruprasad R wrote:
> i am creating a jar file using the below ant script.
>
>
>
>
>
>
>
> The created jar file has all the files twice in it, with the same path. ex:
> there are 2 files named as weblogic-ejb-jar.xml with the same path.
> i have ano
in the ${src}/classes folder:
> jar -tvf npacejb.jar
>
> If that shows the path in the jar as meta-inf then use:
>
>
>
>
> If you have a manifest already in the ${src}/classes/meta-inf folder then
> you'll tuck an inlined element in the jar task to creat
t shows the path in the jar as meta-inf then use:
If you have a manifest already in the ${src}/classes/meta-inf folder then
you'll tuck an inlined element in the jar task to create it in
the resulting jar.
--
Clifton C. Craig, Software Engineer
Intelligent Computer Systems -
quot;
To
Ant Users List
cc
Subject
Re: Jar task
i am opening the jar file with winzip and i can see the path as
''meta-inf'.
On 1/17/06, Jeffrey E Care <[EMAIL PROTECTED]> wrote:
>
> As for the duplicates, either use the basedir, or use the nested
fileset:
>
thanx Jeffrey, the duplicates have been removed.
On 1/17/06, Guruprasad R <[EMAIL PROTECTED]> wrote:
>
> i am opening the jar file with winzip and i can see the path as
> ''meta-inf'.
>
> On 1/17/06, Jeffrey E Care <[EMAIL PROTECTED]> wrote:
> >
> > As for the duplicates, either use the basedir, o
i am opening the jar file with winzip and i can see the path as ''meta-inf'.
On 1/17/06, Jeffrey E Care <[EMAIL PROTECTED]> wrote:
>
> As for the duplicates, either use the basedir, or use the nested fileset:
> not both.
>
> As for META-INF, how do you know that it is lowercased in the JAR?
>
> --
As for the duplicates, either use the basedir, or use the nested fileset:
not both.
As for META-INF, how do you know that it is lowercased in the JAR?
--
Jeffrey E. Care ([EMAIL PROTECTED])
WebSphere v7 Release Engineer
WebSphere Build Tooling Lead (Project Mantis)
Guruprasad R <[EMAIL PROTEC
i am creating a jar file using the below ant script.
The created jar file has all the files twice in it, with the same path. ex:
there are 2 files named as weblogic-ejb-jar.xml with the same path.
i have another problem. there are several files whose *path* is META-INF.
but i am get
never)?
Thanks,
Barak.
-Original Message-
From: Andrew Goktepe [mailto:[EMAIL PROTECTED]
Sent: ?? 01 ?? 2005 16:57?
To: Ant Users List
Subject: Re: Jar task updated a jar without known reason
The jar task will do as its told without checking to see if there is already
an up-to-date file, ju
The jar task will do as its told without checking to see if there is already
an up-to-date file, just as with the jar command-line utility.
Yes, without the update attribute set, the jar file will be re-created each
time.
-Andrew
On 9/1/05, Barak Yaish <[EMAIL PROTECTED]> wrote:
>
?? 01 ?? 2005 16:46?
To: Ant Users List
Subject: Re: Jar task updated a jar without known reason
You can use the task to compare timestamps between a set of files
and a target file. In your case, the set of files are your class files, and
the target file is your jar file.
(your current conten
You can use the task to compare timestamps between a set of files
and a target file. In your case, the set of files are your class files, and
the target file is your jar file.
(your current contents of compile_cli here)
Also, are you sure you want update="true" on th
Hello,
In my build file, javac and jar task are called in order to create a jar for my
project.
First time these tasks were called, the source files got compiled and a jar was
created just fine. Without changing anything in the source files, I ran again
the tasks.
Nothing happened in javac
Hi all... I've been fighting with this for a couple of days now and it's
killing me... I have the following task:
includes="my.tld" />
includes="my-other.tld" />
I added the sleep because I read about the 2-second thing as far as
determing if a file has been updated. It didn
Argh, today seems to be the day of "things that worked 10 minutes ago
don't now"...
I have a JAR task...
includes="META-INF/*" />
Under the directory ${src} points to I have a META-INF directory with a
tlds directory in it, in which are two .tld files. The TLDs
]
Sent: Tuesday, June 21, 2005 11:59 AM
To: Ant Users List
Subject: Weird error with Jar task
Hi all... I have a strange situation with a JAR task... I'm dealing with
a build script that has always worked and has not changed. The version
of Ant has not changed (1.6.1) and in fact nothing else t
t is going on?
Frank
Frank W. Zammetti wrote:
Hi all... I have a strange situation with a JAR task... I'm dealing with
a build script that has always worked and has not changed. The version
of Ant has not changed (1.6.1) and in fact nothing else that I can
identify has changed.
The error I
Hi all... I have a strange situation with a JAR task... I'm dealing with
a build script that has always worked and has not changed. The version
of Ant has not changed (1.6.1) and in fact nothing else that I can
identify has changed.
The error I get is:
C:\tomcat\webapps\ajaxtags\WEB-IN
Attached herewith is the build.xml
I am using Ant 1.6.2 with WSAD 4.1 and the integrated JDK(Version 1.5.3)
Trying to run the ejbdeploy2 target...
NOTE: the classpath is set to ejbdeploy1.classpath
Get the follwin
button
> and then point on the base dir of your ant
> installation.
>
> HTH Ivan
> --- Mark Benussi <[EMAIL PROTECTED]> wrote:
>
>
>>Sorry if this has been done to death but I did
>>search the mail lists and
>>found nothing.
>>
>>I am u
WSAD 5.1.1 and Ant 1.6.
>
> When attempting to use the jar task in my build
> script I get:
>
> BUILD FAILED: java.lang.NoSuchMethodError:
>
org.apache.tools.zip.ZipOutputStream.(Ljava/io/File;)V
>
> This has been described in the eclipse bug:
>
> https://bugs.ecli
Sorry if this has been done to death but I did search the mail lists and
found nothing.
I am using WSAD 5.1.1 and Ant 1.6.
When attempting to use the jar task in my build script I get:
BUILD FAILED: java.lang.NoSuchMethodError:
org.apache.tools.zip.ZipOutputStream.(Ljava/io/File;)V
This has been
Is it possible to do filtering "on the fly" with the war/jar task? Or,
do I need to copy (with filtering) to a directory, and then jar the
files from there?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional c
76 matches
Mail list logo