C preprocessor driven from ANT?
Hi Does anyone know of a pure-Java pre-processor that can handle c-style multiple #include and nested #defines? Our DB build is preceded by the SQL being subject to some C-style pre-processing before the stored procs are run into the DB. Our DB build is done outside of ANT using make at the moment but the only barrier to driving it from ANT is the fact that this C-style pre-processing has to take place. Obviously I'm after a pure-Java implementation so that I don't have to worry about cross-platform issues, otherwise I'd just exec a resident native binary pre-processor. Tim Allustra Limited 85 Gracechurch Street London EC3V 0AA Tel +44 (0)20 7469 8640 Fax +44 (0)20 7469 8689 http://www.allustra.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: C preprocessor driven from ANT?
I once used gcc for this purpose. You can just run the pre-processor and save the output. I also have used m4. It's a bit more powerful than gcc and is language agnostic. I have since bagged both of those and use ant's filterchains. I use the ExpandProperties and ReplaceTokens filterchains instead of #defines. I use the ConcatFilter filterchain or the Concat task instead of #includes. -Original Message- From: Tim Gordon [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 13, 2005 8:30 AM To: user@ant.apache.org Subject: C preprocessor driven from ANT? Hi Does anyone know of a pure-Java pre-processor that can handle c-style multiple #include and nested #defines? Our DB build is preceded by the SQL being subject to some C-style pre-processing before the stored procs are run into the DB. Our DB build is done outside of ANT using make at the moment but the only barrier to driving it from ANT is the fact that this C-style pre-processing has to take place. Obviously I'm after a pure-Java implementation so that I don't have to worry about cross-platform issues, otherwise I'd just exec a resident native binary pre-processor. Tim Allustra Limited 85 Gracechurch Street London EC3V 0AA Tel +44 (0)20 7469 8640 Fax +44 (0)20 7469 8689 http://www.allustra.com/ - 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]
Re: AW: How to detect missing jars in a ?
To add to the discussion, one way I might do this from current Ant svn (longer than necessary but including info): Note that you would have to use some mechanism for accessing the not and exists resourceselectors, e.g. (with) or failure only, no properties or info (actually longer!): So we could keep adding more, but we already have > 1 way to do this in HEAD. -Matt --- [EMAIL PROTECTED] wrote: > I think enhancing [1] would be good > idea: > > > number="|all"> > <*resource/> > > > > > is a resource collection [2]. It combines > multiple possibilities > * need exactly 3 of the specified resources > > * need 3 or more resources > > * need 4 or less resources > > * nedd all resources - which is the default > > because it´s the default just: > > > > refid="xyz"/> > > > > Open: > - naming of the element () > - naming of the attributes > Are here any other tasks where we can "reuse" the > names? > - integration into resource collections > Do I use the right scenario or is there something > else? > > > Advantage: would support resources > (doesnt do it yet) :-) > > > > Jan > > > > [1] > http://ant.apache.org/manual/CoreTasks/available.html > [2] > http://svn.apache.org/repos/asf/ant/core/trunk/docs/manual/CoreTypes/resources.html#collection > > > > >-Ursprüngliche Nachricht- > >Von: Bertrand Delacretaz > [mailto:[EMAIL PROTECTED] > >Gesendet: Montag, 12. Dezember 2005 12:18 > >An: Ant Users List > >Betreff: Re: How to detect missing jars in a > ? > > > >Le 12 déc. 05, à 11:57, Steve Loughran a écrit : > > > >> ...Sounds to me like you've just added a new > condition to Ant, > >> Monsieur Delacretaz, called something like > , which > >> verifies that every element in a path is present, > logs at -verbose > >> level if one is missing (and perhaps sets a > property to a > >> filelist/path of missing items)... > > > >Thanks for confirming that it doesn't exist yet, I > was > >wondering if I was missing something obvious. > > > >> something like > >> > >>missingpathid="xyz.missing" > >> textproperty="message" /> > >> > >> Missing files > ${message} > > > >Sounds good, I'll try to come up with something in > my Copious > >Free Time... > > > >Actually, if the JVMs would check existence of all > jar files > >passed in the classpath, it would make our lives > easier in many places. > > > >-Bertrand > > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ANT EXECUTE TASK
I am using this tasks to start/stop windows services. Is there any way I can able to START/STOP services on other server. Vijay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ANT EXECUTE TASK
Hello, This is more of an question related to Microsoft Admin tools, not ANT build tool !!! But, since I work with Windows Boxes I might be able to help you. Take a look at the sc.exe executable for starting/stopping/managing Windows Services (local and remote) later, Ninju - Original Message From: "Shinde, Vijay" <[EMAIL PROTECTED]> To: user@ant.apache.org Sent: Tuesday, December 13, 2005 10:45:49 AM Subject: ANT EXECUTE TASK I am using this tasks to start/stop windows services. Is there any way I can able to START/STOP services on other server. Vijay - 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]
ant-contrib foreach performance
I have a task which runs on a list of >1000 strings, and calls an ant task which extracts 2 sub-strings, interprets them as numbers, calculates their sum, and replaces the 2 sub-strings with their sum (this is done by writing the sub-strings to a properties file, loading it and using the task). The problem is that running the task so many times, even on an empty task which doesn't do anything, takes a long time (over a minute). So: 1) Is there a more efficient way to accomplish iteration over a list? 2) Is there a way to perform such a math operation in a regular regex replacement, without using a foreach iteration? Thanks, Ephi
Expanding ALL properties manually
Hi. I'm writing an ant task that loads an external xml file. I want the user to be able to use standard ant properties in this file. Is there an easy way to pass the xml as a string to some method and have it return the xml as a string with any/all ant properties expanded? Basically i want to expand any/all properties in the file before my parser starts on it. Thanks! - Jonathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Expanding ALL properties manually
Jonathan <[EMAIL PROTECTED]> wrote .. > Hi. > > I'm writing an ant task that loads an external xml file. > I want the user to be able to use standard ant properties in this file. > Is there an easy way to pass the xml as a string to some method and have > it return the xml as a string with any/all ant properties expanded? > Basically i want to expand any/all properties in the file before my > parser starts on it. its easy enough to reuse the loadfile + filterchain/replacetoken code gl, Jim Fuller - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ANT EXECUTE TASK
I was trying following command sshexec host="servername" username="antuser" password="Password1" command="NET STOP IIS Admin Service" /> It Is throwing connection refused error. Thanx & Regards, Vijay Shinde,PMP eHARS Application Architect/Application Development Lead, CITS-2 SDMB Office: 404.639.2999 -Original Message- From: Shinde, Vijay Sent: Tuesday, December 13, 2005 11:46 AM To: user@ant.apache.org Subject: ANT EXECUTE TASK I am using this tasks to start/stop windows services. Is there any way I can able to START/STOP services on other server. Vijay - 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]
J2ee application --- jsp files
One of the main benefits of jsp that it can be updated dynamically by which I mean when a jsp is updated the application need not be re-deployed since jsp is complied run time. my question is the following : we have a j2ee application (standard architecture struts + ejbs+toplink). we deploy an ear file. when we deploy an ear file is there any way we can update the jsp files in it without re-deploying?. if so how?. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: J2ee application --- jsp files
Wouldn't that depend on the application server that you are using? -- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere v7 Release Engineer WebSphere Build Tooling Lead (Project Mantis) "Jonnalagadda, Sumithra" <[EMAIL PROTECTED]> 12/13/2005 01:52 PM Please respond to "Ant Users List" To "'Ant Users List'" cc Subject J2ee application --- jsp files One of the main benefits of jsp that it can be updated dynamically by which I mean when a jsp is updated the application need not be re-deployed since jsp is complied run time. my question is the following : we have a j2ee application (standard architecture struts + ejbs+toplink). we deploy an ear file. when we deploy an ear file is there any way we can update the jsp files in it without re-deploying?. if so how?. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: J2ee application --- jsp files
we are using weblogic -Original Message- From: Jeffrey E Care [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 13, 2005 11:17 AM To: Ant Users List Subject: Re: J2ee application --- jsp files Wouldn't that depend on the application server that you are using? -- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere v7 Release Engineer WebSphere Build Tooling Lead (Project Mantis) "Jonnalagadda, Sumithra" <[EMAIL PROTECTED]> 12/13/2005 01:52 PM Please respond to "Ant Users List" To "'Ant Users List'" cc Subject J2ee application --- jsp files One of the main benefits of jsp that it can be updated dynamically by which I mean when a jsp is updated the application need not be re-deployed since jsp is complied run time. my question is the following : we have a j2ee application (standard architecture struts + ejbs+toplink). we deploy an ear file. when we deploy an ear file is there any way we can update the jsp files in it without re-deploying?. if so how?. - 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]
Re: ant-contrib foreach performance
Try using the task. The task has the overhead of having to re-load the build file as it runs the target. The task uses macrodefs and should be much faster. Also if you have such a well-defined complex usage it may make sense to create a custom task and drop into a compiled language (like JAVA) to accomplish what you need. Ninju - Original Message From: Ephi Sachs <[EMAIL PROTECTED]> To: user@ant.apache.org Sent: Tuesday, December 13, 2005 11:53:41 AM Subject: ant-contrib foreach performance I have a task which runs on a list of >1000 strings, and calls an ant task which extracts 2 sub-strings, interprets them as numbers, calculates their sum, and replaces the 2 sub-strings with their sum (this is done by writing the sub-strings to a properties file, loading it and using the task). The problem is that running the task so many times, even on an empty task which doesn't do anything, takes a long time (over a minute). So: 1) Is there a more efficient way to accomplish iteration over a list? 2) Is there a way to perform such a math operation in a regular regex replacement, without using a foreach iteration? Thanks, Ephi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
javadoc
I've actually used ant for quite sometime, but I've never messed with it enough at the same time to get truly proficient. At any rate, I've been using ant to build a library for me for sometime and now I need to get the javadoc working. Here is my directory structure. heavyweight+ +gui +io +re +util The heavyweight directory contains only the build.xml. All source files are located in the subs. Here is my javadoc: sourcepath="${src}" defaultexcludes="yes" destdir="docs/api" author="true" version="true" use="true" windowtitle="Heavyweight API"> href="http://java.sun.com/products/jdk/1.5/docs/api/"; packagelistLoc="/tmp"/> href="http://developer.java.sun.com/developer/products/xml/docs/api/"/> I though this was OK, but when I build it, I get: doc: BUILD FAILED C:\src\heavyweight\build.xml:120: No source files and no packages have been specified. Line 120 is the end of the javadoc tag. Can someone steer me in the right direction here? Thanks. Thom Hehl Heavyweight Software for Heavyweight Needs www.heavyweightsoftware.com -- "In every revolution, there is one man with a vision."--Jerome Bixby - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
help with copy and glob mapper
We have a series of templates in a particular directory and I was hoping to use copy/glob mapper/expand properties in order to move them into the build directory AND rename them. At a point, the directory paths are identical, so what I was hoping to do is something like this: But for whatever reason, this only picks up files at the top level (things in source, but not source/somesubdir/someotherdir). Is there a way to do this?
RE: help with copy and glob mapper
EJ, Maybe you can set up a target to do the copy for you and try something like this We have a project that its contents need to copied into particular webapp project prior to building a war file. Hope this helps. -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 13, 2005 1:54 PM To: user@ant.apache.org Subject: help with copy and glob mapper We have a series of templates in a particular directory and I was hoping to use copy/glob mapper/expand properties in order to move them into the build directory AND rename them. At a point, the directory paths are identical, so what I was hoping to do is something like this: But for whatever reason, this only picks up files at the top level (things in source, but not source/somesubdir/someotherdir). Is there a way to do this? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: help with copy and glob mapper
nope, I'm not sure I was clear. Not only do we need to rename the individual files on the fly, but also expand ant properties within. Any suggestions people? I'm not so good with regexp but think that may be my only way out - -Original Message- From: Ferrer, Eric [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 13, 2005 4:10 PM To: Ant Users List Subject: RE: help with copy and glob mapper EJ, Maybe you can set up a target to do the copy for you and try something like this We have a project that its contents need to copied into particular webapp project prior to building a war file. Hope this helps. -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 13, 2005 1:54 PM To: user@ant.apache.org Subject: help with copy and glob mapper We have a series of templates in a particular directory and I was hoping to use copy/glob mapper/expand properties in order to move them into the build directory AND rename them. At a point, the directory paths are identical, so what I was hoping to do is something like this: But for whatever reason, this only picks up files at the top level (things in source, but not source/somesubdir/someotherdir). Is there a way to do this? - 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]
RE: javadoc
Try this format for your packagenames attribute: packagenames="heavyweight.gui,heavyweight.io,heavyweight.re,heavyweight. util" HTH, Kajsa Anderson > -Original Message- > From: Thom Hehl [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 13, 2005 1:46 PM > To: user@ant.apache.org > Subject: javadoc > > I've actually used ant for quite sometime, but I've never > messed with it enough at the same time to get truly proficient. > > At any rate, I've been using ant to build a library for me > for sometime and now I need to get the javadoc working. Here > is my directory structure. > > heavyweight+ >+gui >+io >+re >+util > > The heavyweight directory contains only the build.xml. All > source files are located in the subs. Here is my javadoc: > >description="document" > > sourcepath="${src}" >defaultexcludes="yes" >destdir="docs/api" >author="true" >version="true" >use="true" >windowtitle="Heavyweight API"> > > > > packages="heavyweight.gui.*"/> > packages="heavyweight.io.*"/> > packages="heavyweight.re.*"/> > packages="heavyweight.util.*"/> > href="http://java.sun.com/products/jdk/1.5/docs/api/"; > packagelistLoc="/tmp"/> > href="http://developer.java.sun.com/developer/products/xml/doc > s/api/"/> > > > > I though this was OK, but when I build it, I get: > > doc: > > BUILD FAILED > C:\src\heavyweight\build.xml:120: No source files and no > packages have been specified. > > Line 120 is the end of the javadoc tag. Can someone steer me > in the right direction here? > > Thanks. > > Thom Hehl > Heavyweight Software for Heavyweight Needs www.heavyweightsoftware.com > -- > "In every revolution, there is one man with a vision."--Jerome Bixby > > > > - > 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]
Re: javadoc
I have changed to: packagenames="heavyweight.gui,heavyweight.io,heavyweight.re,heavyweight.util" Same exact error. [EMAIL PROTECTED] wrote: Try this format for your packagenames attribute: packagenames="heavyweight.gui,heavyweight.io,heavyweight.re,heavyweight. util" HTH, Kajsa Anderson -Original Message- From: Thom Hehl [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 13, 2005 1:46 PM To: user@ant.apache.org Subject: javadoc I've actually used ant for quite sometime, but I've never messed with it enough at the same time to get truly proficient. At any rate, I've been using ant to build a library for me for sometime and now I need to get the javadoc working. Here is my directory structure. heavyweight+ +gui +io +re +util The heavyweight directory contains only the build.xml. All source files are located in the subs. Here is my javadoc: packages="heavyweight.gui.*"/> packages="heavyweight.io.*"/> packages="heavyweight.re.*"/> packages="heavyweight.util.*"/> href="http://java.sun.com/products/jdk/1.5/docs/api/"; packagelistLoc="/tmp"/> http://developer.java.sun.com/developer/products/xml/doc s/api/"/> I though this was OK, but when I build it, I get: doc: BUILD FAILED C:\src\heavyweight\build.xml:120: No source files and no packages have been specified. Line 120 is the end of the javadoc tag. Can someone steer me in the right direction here? Thanks. Thom Hehl Heavyweight Software for Heavyweight Needs www.heavyweightsoftware.com -- "In every revolution, there is one man with a vision."--Jerome Bixby - 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] Thom Hehl Heavyweight Software for Heavyweight Needs www.heavyweightsoftware.com -- "In every revolution, there is one man with a vision."--Jerome Bixby - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems with building a servlet that refers an EJB
I am having problems with classpath, when trying to compile an EJB. I am obviously missing the obvious :--), but I have gone over the classpath setting a number of times and am not able to see the error. Should I copy the ejb.jar to WEB-INF/lib ? I did try copying the package to the WEB-INF/classes dir to no avail. I must be missing the obvious Any suggestions welcome The directory structure is com | - aptsi | -applications | -- tsm | -- ejb | -- web etc. The EJB is in ejb and the code is a straight forward: /* * Generated by XDoclet - Do not edit! */package com.aptsi.applications.tsm.ejb; /** * Remote interface for HelloWorld. * @created December 10, 2005 */public interface HelloWorld extends javax.ejb.EJBObject{ /** * Your Logic. */ public java.lang.String helloWorld( ) throws java.rmi.RemoteException; } The servlet is also very simple and shown below: /* * Created on Dec 12, 2005 * * TODO To change the template for this generated file go to * Window - Preferences - Java - Code Style - Code Templates */package com.aptsi.applications.tsm.web.servlets.frontcontroller; import javax.ejb.*;import javax.servlet.*;import javax.servlet.http.*;import java.io.PrintWriter;import java.io.IOException;import com.aptsi.applications.tsm.ejb.HelloWorld; /** * @author atsidev * * TODO To change the template for this generated type comment go to * Window - Preferences - Java - Code Style - Code Templates */public class RegLogout extends HttpServlet { public static final int REGISTER = 0; public static final int LOGOUT = 1; public void doProcess (HttpServletRequest request,HttpServletResponse response) { int actionIndex=-99; String actionJsp[] = {"/register.jsp","/logout.jsp"}; String submitButton = "test"; submitButton = request.getParameter("submitButton"); if ((submitButton != null) && (submitButton.equals("register"))) { actionIndex = REGISTER; } else if ((submitButton != null) && (submitButton.equals("logout"))) { actionIndex = LOGOUT; } // this is only for testing: // Get the HelloWorld Ejb here and print out a HelloWorld. // // Get the context Context ctx = new InitialContext(); ctx = (Context)ctx.lookup("java:comp/env"); Object o = ctx.lookup("HelloWorld"); HelloWorldHome home = (HelloWorldHome) PortableRemoteObject.narrow(o, HelloWorldHome.class); // get the bean remote instance // HelloWorld h = home.create(); System.out.println(h.helloWorld()); try { this.getServletContext().getRequestDispatcher(actionJsp [actionIndex]).include(request, response); } catch(ServletException e) { System.out.println(e.getMessage()); } catch (IOException ie) { System.out.println(ie.getMessage()); } } public void doGet (HttpServletRequest request, HttpServletResponse response) { doProcess(request,response); } public void doPost (HttpServletRequest request, HttpServletResponse response) {doProcess(request,response); } } The ant build code properties: dir.src="">dir.lib=src/java/libdir.buildroot=./builddir.build=${dir.buildroot}/classesdir.build.common=${dir.build}/commondir.build.ejb=${dir.build}/ejb dir.assemble=${dir.buildroot}/assembleearDir=${dir.assemble}/earwarDir=${dir.assemble}/warejbDir=${dir.assemble}/ejbjarDir=${dir.assemble}/jarsearAppDDDir=${earDir}/META-INF/dir.assemble.warclass=${warDir}/WEB-INF/classes dir.dist=distdir.deploydir=C:/aptsi_home/jboss/jboss-3.2.3/server/default/deploy applicationName=tsmapplication.dir=${dir.src}applications/${applicationName}dirs.base=${basedir}java.dir=${basedir}/aptsi warclassdir=${application.dir}/web/WEB-INF/classeslibdir=${application.dir}/web/WEB-INF/libappDDDir=${application.dir}/META-INF/warDD=${application.dir}/web/WEB-INFweb.dir=${application.dir}/webapp-src.dir=com/aptsi/applications/${applicationName}ejb.dir=${application.dir}/ejbcommon.dir=${application.dir}/common warFile=${applicationName}.warearFile=${applicationName}.earjarFile=${applicationName}.jar dir.base.src=""> The ant build code classpath: The ant buildfile code javac: classpathref="compile.classpath"> The error message: [javac] File to be compiled: [javac] C:\ATSI\Clients\ApTSi\TestingService\demo\testapp\Dev\dev\src\java\com\aptsi\applications\tsm\web\servlets\frontcontroller\RegLogout.java [javac] C:\ATSI\Clients\ApTS
Getting the drive letter and setting windows path
Hi All, I have two questions and I would really appreciate your assistance. 1. How do I get the drive letter which ant is running from (under windows of course)? Something like getting the first char of ${basedir} is good enough for me (I think...) 2. Is there a way to set the windows path through ant? It doesn't have to be permanent, I just want to append a dir to the windows path during the running of ant (because of a DLL issue). I tried to use the exec task but it didn't work: I couldn't execute 'set' because it is not an executable file and if I execute 'cmd.exe' with arguments 'set Path=...' , then the path is only changed in the cmd.exe process and not outside of it (the change is not visible to ant after cmd.exe has ended). Thank you very much for any help you can offer, Michael
RE: J2ee application --- jsp files
This question is not really ant related. Contact BEA for weblogic support. -Rob A > -Original Message- > From: Jonnalagadda, Sumithra [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 13, 2005 11:18 AM > To: 'Ant Users List' > Subject: RE: J2ee application --- jsp files > > we are using weblogic > > -Original Message- > From: Jeffrey E Care [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 13, 2005 11:17 AM > To: Ant Users List > Subject: Re: J2ee application --- jsp files > > > Wouldn't that depend on the application server that you are using? > > -- > Jeffrey E. Care ([EMAIL PROTECTED]) > WebSphere v7 Release Engineer > WebSphere Build Tooling Lead (Project Mantis) > > > > > "Jonnalagadda, Sumithra" <[EMAIL PROTECTED]> > 12/13/2005 01:52 PM > Please respond to > "Ant Users List" > > > To > "'Ant Users List'" > cc > > Subject > J2ee application --- jsp files > > > > > > > One of the main benefits of jsp that it can be updated dynamically by > which > I mean when a jsp is updated the application need not be > re-deployed since > jsp is complied run time. > > my question is the following : > > we have a j2ee application (standard architecture struts + > ejbs+toplink). > we > deploy an ear file. > > when we deploy an ear file is there any way we can update the > jsp files in > it without re-deploying?. if so how?. > > - > 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]
Re: Getting the drive letter and setting windows path
Hello Michael, --- Michael Silverman <[EMAIL PROTECTED]> wrote: > Hi All, > > I have two questions and I would really appreciate > your assistance. > > 1. How do I get the drive letter which ant is > running from (under windows of > course)? > Something like getting the first char of > ${basedir} is good enough for > me (I think...) You can do it using from ant-contrib or if you want pure Ant solution you can use the following : @{absPath} $${drive} is ${drive} There may be some trick with as well. > 2. Is there a way to set the windows path through > ant? It doesn't have to be > permanent, >I just want to append a dir to the windows path > during the running of ant > (because of a DLL issue). >I tried to use the exec task but it didn't work: > I couldn't execute 'set' > because it is not >an executable file and if I execute 'cmd.exe' > with arguments 'set > Path=...' , then the path >is only changed in the cmd.exe process and not > outside of it (the change > is not visible >to ant after cmd.exe has ended). I suppose you are calling a windows command with . You can use 's nested element and pass through it the desired env variable. Hope this helps Regards Ivan __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting the drive letter and setting windows path
Hi Ivan, Thank you very much for your help. I will try ant-contrib and your macro and hopefully it will solve my first problem. > I suppose you are calling a windows command with > . You can use 's nested element and > pass through it the desired env variable. > > Actually, Ant runs a task that launches a java app which loads a DLL which itself loads more DLL's The first DLL load is not a problem (I'm just passing java.library.path to the JVM) but when that DLL tries to loads the other DLL's, it searches them in the windows path (this is a normal behavior which has nothing to do with Java / Ant). So what I want is to append the DLL's dir to the windows path just before I run the task but it has to be done in the same process of Ant in order to be visible to the first DLL (which runs in a child process created by the Ant task). I hope that's clear enough. Any other ideas how to set the path through Ant? Thanks, Michael
RE: help with copy and glob mapper
> -Original Message- > From: EJ Ciramella [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 13, 2005 3:54 PM > To: user@ant.apache.org > Subject: help with copy and glob mapper > > We have a series of templates in a particular directory and I was hoping > to use copy/glob mapper/expand properties in order to move them into the > build directory AND rename them. At a point, the directory paths are > identical, so what I was hoping to do is something like this: > > > > > > > > > > But for whatever reason, this only picks up files at the top level (things > in source, but not source/somesubdir/someotherdir). > > Is there a way to do this? H, I'm no expert but it looks like your mapper needs to reflect the arbitrary directory depth by using **. Can't lay my hands on any tested example code but see if some combination like this is helpful: or something like that, add stars or subtract stars to suit your particular need. and if that doesn't work, try pulling a little deeper in your fileset if you don't have too many files. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: C preprocessor driven from ANT?
On Tue, 13 Dec 2005, Tim Gordon <[EMAIL PROTECTED]> wrote: > Our DB build is preceded by the SQL being subject to some C-style > pre-processing before the stored procs are run into the DB. Our DB > build is done outside of ANT using make at the moment but the only > barrier to driving it from ANT is the fact that this C-style > pre-processing has to take place. without changing the syntax, that is, I assume. Otherwise there are a couple of preprocessor tasks listed on Ant's external tasks page. You could try to use your own filterreader which would force you to re-implement the pieces of logic required for your scripts, which might not be that much (keeping track of defines, very simple conditionals, swallowing lines and including other files). I'm not aware of existing solutions here. And like Brian said, you can always run gcc's preprocessor stand-alone. A quick look over the ant-contrib cc tasks reveals that they don't support running the compiler without compiling. Sorry, no good news Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ant-contrib foreach performance
On Tue, 13 Dec 2005, Ninju Bohra <[EMAIL PROTECTED]> wrote: > Try using the task. The task has the overhead of > having to re-load the build file as it runs the target. The > task uses macrodefs and should be much faster. > > Also if you have such a well-defined complex usage it may make sense > to create a custom task and drop into a compiled language (like > JAVA) to accomplish what you need. Yes, good advice, in particular writing a task to do it. You can write a task using scripting languages as well, see Ant's scriptdef task. Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Expanding ALL properties manually
On Tue, 13 Dec 2005, jim fuller <[EMAIL PROTECTED]> wrote: > Jonathan <[EMAIL PROTECTED]> wrote .. >> Hi. >> >> I'm writing an ant task that loads an external xml file. I want >> the user to be able to use standard ant properties in this file. >> Is there an easy way to pass the xml as a string to some method and >> have it return the xml as a string with any/all ant properties >> expanded? Basically i want to expand any/all properties in the >> file before my parser starts on it. > > its easy enough to reuse the loadfile + filterchain/replacetoken > code Or make you task support filterchains. Ant's HEAD has a loadresource task which loads a property fom arbitrary resources (and supports filterchains). Strings and properties are resources in HEAD as well. Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: javadoc
On Tue, 13 Dec 2005, Thom Hehl <[EMAIL PROTECTED]> wrote: > packagenames="heavyweight.gui.* heavyweight.io.* heavyweight.re.* > heavyweight.util.*" the separator for packagenames is "," not " ". >sourcepath="${src}" might be the most important information. > BUILD FAILED C:\src\heavyweight\build.xml:120: No source files and > no packages have been specified. run ant -debug and see which directories get scanned for Java files and which directories are included. Each entry in sourcepath will be the root directory of a . >From there, only the directories whose names match one of your named packages, in your case that means matches on of the patterns heavyweight/gui/**, heavyweight/io/**, heavyweight/re/** or heavyweight/util/**. Only directories that contain .java files or a package.html are accepted. Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with building a servlet that refers an EJB
On Tue, 13 Dec 2005, <[EMAIL PROTECTED]> wrote: > > > > > > > > > > A classpath never points to the .class files but either to jar files or directories that are roots of directory hierarchies holding .class files. In your case you will want instead of the second fileset. Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting the drive letter and setting windows path
On Wed, 14 Dec 2005, Michael Silverman <[EMAIL PROTECTED]> wrote: > So what I want is to append the DLL's dir to the windows path just > before I run the task but it has to be done in the same process of > Ant in order to be visible to the first DLL (which runs in a child > process created by the Ant task). Can't you use Ant to resolve the directory to your DLL using ? Ant knows how to resolve the file and create an absolute path using the correct drive letter so you wouldn't have to do so. Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: help with copy and glob mapper
On Tue, 13 Dec 2005, EJ Ciramella <[EMAIL PROTECTED]> wrote: > > > > > > > > > But for whatever reason, this only picks up files at the top level > (things in source, but not source/somesubdir/someotherdir). This is because your other files are not matched by the glob pattern (they don't start with "template" but the directory path leading up to it. You need to preserve the directory structure, right? Otherwise you could use chained mappers and flatten the file names first. I currently don't see anything but Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]