Steve Loughran wrote:
Lucian Chirita wrote:
Is there a way to reuse a classloader across several tasks?
All the tasks refer the same classpath ID, and have fork="false".
I thought setting ant.reuse.loader would take care of this, but it
doesn't because the task does not use ClasspathUtil t
hi
i am creating a deployement tool for weblogic server by completely
automating the deployement process using ant tool. (only for web
application). user sepecifies the saurce folder through my application and
also specifies the destination folder for the creation of context root.
following i
You can give a specific build file to Ant by giving the file name with the
switch -f.
e.g. ant -f myfile.xml
So you can have two build files in the same folder and specifically call the
required one. If file name is not given then it will look for the file named
build.xml.
Upul
On Thu, Jun 19, 2
Hi,
if i place both my applications (web application and business application )
in same source folder , and i want to create context root for deployement
using ant tool. so will it require two seperate build files and if so can
they be placed in the same source folder.
thanks in advance
--
Vie
Hi All,
I need to do a ftp to remote http site and store the file over there.
Could you please help me out in doing this task..
Appreciate your help on this.
Regards,
Loganathan M
=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may con
Lucian Chirita wrote:
Is there a way to reuse a classloader across several tasks? All
the tasks refer the same classpath ID, and have fork="false".
I thought setting ant.reuse.loader would take care of this, but it
doesn't because the task does not use ClasspathUtil to
Java tries to isol
Is there a way to reuse a classloader across several tasks? All
the tasks refer the same classpath ID, and have fork="false".
I thought setting ant.reuse.loader would take care of this, but it
doesn't because the task does not use ClasspathUtil to
instantiate classloaders.
Thank you,
Luci
Hi Irfan,
You need a manifest file with a main class attribute.
A quick googling of 'jar main-class' brings back a wealth of links to
check out. Here's one:
http://java.sun.com/developer/Books/javaprogramming/JAR/basics/run.html
Thanks,
Kevin
From: [EMAIL PR
Thanks for all reply.
Now what I did is I compiled only one source file and made a jar out of
it which contains only one ArrayExample.class file. Once JAR available
then I unzipped that JAR and edited the manifest file as per your
suggestion but still I am getting same error.
Please find the atta
I will be out of the office starting 17/06/2008 and will not return until
23/06/2008.
In the case of urgent enquires please contact:.
Alison Litherland [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addition
Does the jar have a manifest file that specifies the main class that
needs to be executed when you execute it?
When you create a jar it will have a META-INF directory inside which you
need to place a manifest file that has the main class that needs to be
executed when you execute the jar file.
The task does have an encoding attribute:
http://ant.apache.org/manual/CoreTasks/javac.html
"encoding Encoding of source files. (Note: gcj doesn't support this
option yet.)"
Its in the online docs ;)
On Wed, 18 Jun 2008, Raghuveer wrote:
Is there option compiling all my source files
Yes 'encoding' option exists in javac task.
http://ant.apache.org/manual/CoreTasks/javac.html
Raghuveer wrote:
Is there option compiling all my source files in my web application in
"tomcat\webapps\testApp" with "-encoding "option in ant.
Example:
. javac -encoding ISO-8859-2 Hel
Is there option compiling all my source files in my web application in
"tomcat\webapps\testApp" with "-encoding "option in ant.
Example:
. javac -encoding ISO-8859-2 HelloWorld.java
. javac -encoding ISO-8859-2 *.java
Use classname attribut instead of MANIFEST:
--
Jürgen Knuplesch
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 18. Juni 2008 09:26
An: user@ant.apache.org
Betreff: unable to execute JAR file
Hi All,
I have 10 java file
On Tue, 17 Jun 2008, Ruel Loehr <[EMAIL PROTECTED]> wrote:
> Does anyone know of a way to pass ants logger to an external type
Not Ant's logger (since there could be more than one BuildListener
attached), but the Project instance that is running Ant.
If your type defines a method of signature
p
hi all
I need to create a remote folder using scp ant task.
Or I need to copy a dir to a remote host.
I used
but it just copy files .
If the remote dir does not exists i need ant create it automatically possibly.
Regards
Giovanni
---
[EMAIL PROTECTED] wrote:
I have 10 java files and I have written Ant build.xml to compile and
create JAR file which contains the .class files. Now my requirement is
that I need to execute/install the JAR file but unfortunately I can’t do
this as I am getting following error.
...
Failed to loa
On Wednesday 18 June 2008 09:25:42 [EMAIL PROTECTED] wrote:
> Hi All,
>
>
>
> I have 10 java files and I have written Ant build.xml to compile and
> create JAR file which contains the .class files. Now my requirement is
> that I need to execute/install the JAR file but unfortunately I can't do
> th
Google is your friend.
http://www.google.co.in/search?q=Failed+to+load+Main-Class+manifest+attribute
The first hit from the search result has this link to Java tutorial :
http://java.sun.com/docs/books/tutorial/deployment/jar/basicsindex.html
To execute a jar using 'java' command, the JAR file
I have 10 java files and I have written Ant build.xml to compile and
create JAR file which contains the .class files. Now my requirement is
that I need to execute/install the JAR file but unfortunately I can’t do
this as I am getting following error.
...
Failed to load Main-Class manifest attr
21 matches
Mail list logo