RE: Ant Deploy failure in weblogic 8.1

2005-12-27 Thread Srikrishna_Parthasarathy
>From Weblogic 8.1, there is a custom ant task for deployment call
wldeploy. After getting it right, please share it to the group .

Hope this helps.

Srikrishna

-Original Message-
From: Petar Tahchiev [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 27, 2005 2:42 AM
To: Ant Users List
Subject: Re: Ant Deploy failure in weblogic 8.1

On 26/12/05, Bedre Atmaling Baburao <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I am running the  following ant target. and getting the
exception.
> through this target my server is running and also the weblogic is able
to
> upload the mentioned ear to the upload folder in weblogic.But the
> exception
> is getting while extracting the
> the ear. if any bosy know solution,plz reply me
>
> thanks
>
> target is:
>
>  source="D:/Ears/26-December-2005_ITR5_RC6/Homer.ear" >
> 
server="t3://${host}:${homer.port}"
>
> classpath="${weblogic.lib.dir}/weblogic.jar"
> username="${wls.username}"
> password="${wls.password}"
>  component="Homer:myserver"
> debug="true"/>
> 
>
> the Exception is :
>
>
>  [java]  Unexpected error executing the deploy
> toolweblogic.management.ManagementRuntimeException:
> java.util.zip.ZipException: error in opening zip file
>  [java] java.util.zip.ZipException: error in opening zip file
>
> BUILD FAILED
> file:D:/HomerCVS1/Homer/dev/application/scripts/build-release.xml:96:
Java
> returned: 1
> at org.apache.tools.ant.taskdefs.Java.execute(Java.java:110)
> at
>
>
org.apache.tools.ant.taskdefs.optional.j2ee.WebLogicHotDeploymentTool.de
ploy
> (WebLogicHotDeploymentTool.java:107)
> at
> org.apache.tools.ant.taskdefs.optional.j2ee.ServerDeploy.execute
> (ServerDeplo
> y.java:146)
> at org.apache.tools.ant.Task.perform(Task.java:341)
> at org.apache.tools.ant.Target.execute(Target.java:309)
> at org.apache.tools.ant.Target.performTasks(Target.java:336)
> at
org.apache.tools.ant.Project.executeTarget(Project.java:1339)
> at
org.apache.tools.ant.Project.executeTargets(Project.java:1255)
> at org.apache.tools.ant.Main.runBuild(Main.java:609)
> at org.apache.tools.ant.Main.start(Main.java:196)
> at org.apache.tools.ant.Main.main(Main.java:235)
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
I have also used Weblogic for a while and noticed that kind of exception
is
thrown in the konsole sometimes. I don't really know why it is thrown
and
would be thankful to know the solution. As I noticed the hotdeploy
directory
of weblogic is checking in some amount of time whether the ear you
deployed
is newer. So in my opinion the exception is thrown when you copy the
ready
ear to the directory in the middle of the "checking" proccess. In my
case
whenever I would see such an exception I would just touch the archive
and a
few seconds later it would be deployed successfully. But I can assure
you
that this is ant related problem, for I have also used the "copy" task
and
the excepion was still thrown sometimes.

--
Regards, Petar!

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Using the bootclasspath

2005-12-27 Thread Bill Winspur
I'm trying to link a diagnostic classloader into the java task, but 
having set up the bootclasspath element,
by prepending my diagnostics jar path to the default contents of 
sun.boot.class.path, and having forked

the jvm, I get the message

bootclasspath ignored since build.sysclasspath has been set.

I have been unable to discover what this message means. Can somebody
direct me to ant's classloading reference material, or explain how I can use
the boot classpath?

Thanks,

Bill


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AntDoclet anouncement

2005-12-27 Thread Fernando Dobladez
I'd like to share AntDoclet, a tool for creating reference documentation from 
your Ant Tasks' source code:

http://antdoclet.neuroning.com

If at all possible, I'd like to have AntDoclet added to the "External Tools" 
page of the website. (see patch below for xdocs/external.xml).

Thanks,
Fernando Dobladez


Index: xdocs/external.xml
===
--- xdocs/external.xml  (revision 359036)
+++ xdocs/external.xml  (working copy)
@@ -211,6 +211,36 @@
 
   
 
+  
+
+AntDoclet is a tool to automatically generate documentation out of
+your Ant Tasks' source code.
+
+It is implemented as a Javadoc doclet, and generates reference
+documentation and other deliverables from the source code of your
+custom Ant Tasks/Types.
+
+
+  
+Compatibility:
+Ant 1.6+ (not tested on earlier versions)
+  
+  
+URL:
+http://antdoclet.neuroning.com/";>http://antdoclet.neuroning.com/
+  
+  
+Contact:
+http://neuroning.com/";>Fernando Dobladez
+  
+  
+License:
+GPL
+  
+
+  
+
+
   
 
 Anteater is a set of Ant tasks for the functional testing of 
websites
Index: xdocs/external.xml
===
--- xdocs/external.xml	(revision 359036)
+++ xdocs/external.xml	(working copy)
@@ -211,6 +211,36 @@
 
   
 
+  
+
+AntDoclet is a tool to automatically generate documentation out of
+your Ant Tasks' source code.
+
+It is implemented as a Javadoc doclet, and generates reference
+documentation and other deliverables from the source code of your
+custom Ant Tasks/Types.
+
+
+  
+Compatibility:
+Ant 1.6+ (not tested on earlier versions)
+  
+  
+URL:
+http://antdoclet.neuroning.com/";>http://antdoclet.neuroning.com/
+  
+  
+Contact:
+http://neuroning.com/";>Fernando Dobladez
+  
+  
+License:
+GPL
+  
+
+  
+
+
   
 
 Anteater is a set of Ant tasks for the functional testing of websites

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: reg. target dependency

2005-12-27 Thread shreedhar natarajan
Hi all, 

Any clarifications for the below statements.

There was a mention about targets in ANT manual. "It should be noted, however, 
that Ant's depends attribute only specifies the order in which targets should 
be executed - it does not affect whether the target that specifies the 
dependency(s) gets executed if the dependent target(s) did not (need to) run."

if my target A fails, target B wud have to fail if it depends on A. but above 
statement looks contradictory !! 

How does the dependency taken care by "MAKE" is done here in ANT ?

Best rgds
Shreedhar


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



getProject() returns null

2005-12-27 Thread Mark Russell
this is an ant task that runs under eclipse 3.1.  It is a very simple 
task that just prints the name of the project. 

However when I runt he ant task under headless eclipse I get the message 
that getProject returns null.


here is the code:
/**
*
*/
package mrr.test.ant;

import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Task;

/**
* @author Mark Russell
*
*/
public class PrintProject extends Task
{
   private static final String CLASS_NAME = PrintProject.class.getName();

   public void execute() throws BuildException {
   System.out.println("execute: " + CLASS_NAME);
   if (getProject() == null) {
   System.err.println("Project is null");
   } else {
   System.out.println("Project name: " + getProject().getName());
   }
   }

}

I am also posting this on the eclipse site

--
Mark Russell
Instantiations, Inc.
http://www.instantiations.com 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Custom type query

2005-12-27 Thread Telang, Nandan

I wish to pass an array of a properties ( foo[1].a =.. foo[1].b =.. ) to a 
custom ANT task that I have defined .. What is the best way to do this ? 
How do I define custom types and can they be passed as attributes of the custom 
task ?

Thanks,
-Nandan




Re: How can I automate use of LOADFILE? (i.e. to load all files in a particular directory into their properties)

2005-12-27 Thread Ninju Bohra
Have you tried using the  task (from the ant-contrib) to loop over all the 
files in the directory and then call  inside the macrodef.
 

   
  
   
   
  
  
  
   

 
Have fun,
 
Ninju


- Original Message 
From: Greg <[EMAIL PROTECTED]>
To: Ant Users List 
Sent: Friday, December 23, 2005 4:43:56 PM
Subject: How can I automate use of LOADFILE? (i.e. to load all files in a 
particular directory into their properties)


Hi,

Is there a way to automatically load all files (using LOADFILE) in a
particular directory?  

That is loaded in a way such that the ANT property name will be the name of
the file.  I want to automate what I'm doing in my ANT script below which
does the LOADFILE part manually.






Thanks.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 22 December 2005 4:15 PM
To: user@ant.apache.org
Subject: RE: Is there an ANT task to replace a  in the source
with the contents of the specified file???

Hi,

I've got a fair portion of this working (see below), however does anyone
know how to automate the LOADFILE part below?  

That is, automate finding all files in the "common" directory and
loading the concents of each file into a property for which the property
name is the filename?




simple example build file

  
  
  
  
  
  




  

  





  







  
  

  


  




The simplest thing would be a  with a nested s and
s.
Your TAG would be an Ant property in the snippet.

Jan

http://ant.apache.org/manual/CoreTypes/filterchain.html#expandproperties


>-Ursprüngliche Nachricht-
>Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Gesendet: Montag, 19. Dezember 2005 08:08
>An: user@ant.apache.org
>Betreff: Is there an ANT task to replace a  in the source 
>with the contents of the specified file???
>
>Hi,
>
>Is there an ANT task to replace a  in the source with the 
>contents of the specified file???
>
>That is I working with some scripting languages where I'd like to 
>identify common code and keep these in separate files (e.g.
>like JSP TAG replacement concept but simpler).  What I'm looking for is 
>a way to specific a TAG in the source file, which within the TAG it 
>identified the file which has the common code.  Then when running the 
>ANT task and "building"
>from the SOURCE to the BUILD area the TAGS would be replaced by the 
>contents of the files.
>
>Any suggestions re how to do this with ANT?
>
>An optional (ideal) extra would be the ability to handle recursion 
>(i.e.
>a file with a snippet of text itself could contain a TAG).
>
>Thanks
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED] For additional 
>commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]