Re: How to script database upgrade using ANT script

2010-11-05 Thread Brian Pontarelli
There are a number of projects for this as well. Here's one I know of: https://github.com/ReadyTalk/staccato There are a number of others out there as well. I'd suggest trying on of these projects to do your migrations and version checking because you'll run into maintenance nightmares otherwis

Re: .project and .classpath

2010-10-13 Thread Brian Pontarelli
ple, how the target would look like, > > Consider only the log4j need to be in my classpath and the nature of my > project is just JAVA nature. > > Thanks > Prakash S > > -Original Message----- > From: Brian Pontarelli [mailto:br...@pontarelli.com] > Sent: Wednesd

Re: .project and .classpath

2010-10-13 Thread Brian Pontarelli
ian, but we are using apache ant to build our > projects. > > Is there any way in getting those files when building the project using > apache ant. > > Thanks > Prakash S > > -Original Message- > From: Brian Pontarelli [mailto:br...@pontarelli.com] > Sent:

Re: .project and .classpath

2010-10-13 Thread Brian Pontarelli
This depends on your dependency management tool. If you are using Savant, Ivy or Maven, it is pretty simple to write a target that generates these files. -bp On Oct 13, 2010, at 3:36 AM, wrote: > > > "mvn clean compile install eclipse:eclipse" > > Generates the following eclipse configu

Re: changing directory in Ant

2010-03-29 Thread Brian Pontarelli
Depending on what you need, you might not be able to do this. Last time I checked there wasn't a way in Java to change the directory of the JVM. The new file APIs in JDK 7 might fix this. -bp On Mar 29, 2010, at 1:49 AM, Irfan Sayed wrote: > Hi all, > > i need to change the directory while e

Re: EasyAnt 0.7 Released !

2010-02-09 Thread Brian Pontarelli
Looks cool . Very similar to what Savant currently provides with plugins and dependency management. We have a new set of plugins coming soon that provide a new way of handling pre and post hooks for targets. I'll send out an email once it is ready to go. -bp On Feb 9, 2010, at 3:52 PM, Jean-

Re: Killing Ant process through shell script when multiple Java processes are running...

2009-11-25 Thread Brian Pontarelli
On Nov 25, 2009, at 3:06 AM, robert lazarski wrote: > On Wed, Nov 25, 2009 at 6:49 AM, Harry_ wrote: >> >> And one more thing I would like to ask is about how to get the list of >> processes created by a process. I want this to make sure that all the >> processes created by parent ant process a

Re: Killing Ant process through shell script when multiple Java processes are running...

2009-11-24 Thread Brian Pontarelli
It will depend on the OS that you are running and grabbing the PID. In most unix systems, the PID of the last executed process is in the variable $!. You can store this in a file for later retrieval if necessary. You can also add a very specific -D property and then use a combination of the ps,

Re: AW: java bytecode produced by "Ant javac" different from "command line javac" bytecode

2009-11-21 Thread Brian Pontarelli
I would think it would produce the exact same output each time unless it is using some type of system dependent code or timestamps. -bp On Nov 21, 2009, at 6:41 AM, Ziggy wrote: > I would have thought that the decompiling is the reason they are different. > Do you get the same result when you

Savant 1.5.4

2009-11-15 Thread Brian Pontarelli
Savant 1.5.4 has been released. I completely forgot to include the latest change log, but this is just a simple patch release that fixes the issue with running Savant outside of a project and using the global plugins. Most users won't notice the change unless you are using Savant this way o

Re: IDEA Project generation from ant

2009-11-04 Thread Brian Pontarelli
On Nov 3, 2009, at 9:44 PM, Raja Nagendra Kumar wrote: I generally only generate .classpath files Could you tell me how you archive this with ant The .classpath format is an extremely simple XML format that tells the IDE where the source paths are and the JAR files for the project. This

Re: IDEA Project generation from ant

2009-11-03 Thread Brian Pontarelli
I generally only generate .classpath files and then use them in both Eclipse and IntelliJ. Savant also has a plugin for generating files and since it is an Ant script , you can use that. The best approach is to use a stock XML file that contains most everything and then a simple script to a

Re: Savant 1.5.3

2009-10-06 Thread Brian Pontarelli
Prego! -bp On Oct 5, 2009, at 9:39 AM, Martin Gainty wrote: molte grazie brian! Martin Gainty __ Prego non alteri/modifichi o interrompa questa trasmissione. Grazie From: br...@pontarelli.com Subject: Savant 1.5.3 Date: Mon, 5 Oct 2009 09:34:

Savant 1.5.3

2009-10-05 Thread Brian Pontarelli
Savant 1.5.3 was released today. This was a patch release that fixes the colorized output on Linux and Unix systems. Some users where having problems with Savant changing the colors of their display terminal and not reseting them. I pulled the colorizing code out of Savant completely. You

Savant 1.5.2 released

2009-09-29 Thread Brian Pontarelli
Savant 1.5.2 has just been released. It fixes the Windows batch script issues that some folks were having when Java was located in a folder that contained spaces and also a transitive dependency pruning error that was causing incorrect transitive dependencies to be included if an artifact's

Re: Unable to delete file

2009-08-18 Thread Brian Pontarelli
havior you are seeing? Its almost certainly some sort of file path problem. On Tue, Aug 18, 2009 at 7:03 PM, Brian Pontarelli wrote: Another option is using Savant. Savant provides a nice wrapper around Ant that allows you to create plugins which can be used between projects. The plugins a

Re: Unable to delete file

2009-08-18 Thread Brian Pontarelli
Another option is using Savant. Savant provides a nice wrapper around Ant that allows you to create plugins which can be used between projects. The plugins are simply Ant build scripts which are downloaded prior to executing Ant. It also allows you to create targets specific to your proje

Re: Problem with the classpath

2009-08-11 Thread Brian Pontarelli
esourceBundle bundle = ResourceBundle.getBundle(bundleName, Locale.ENGLISH); So how could we possibly load the classes dynamically, based on their fully-qualified class name, without having some sort of classpath attribute defined in Ant? Best Regards, Tiago Espinha Brian Pontarelli wrote: I would definitely a

Re: Problem with the classpath

2009-08-10 Thread Brian Pontarelli
I would definitely avoid the environment variable if possible. In 12 years of Java work, I've never used that variable. Try to be very explicit about the classpath for each thing you are doing and very very specific about versions of all the JARs on the classpath. Once you have removed the

Re: Macosx and AnsiColorLogger

2009-07-30 Thread Brian Pontarelli
It works fine on my box. I do have the gray background issue on Linux terminals and Savant though. However, ant and Savant work fine on Mac. Here's my ~/.antrc: ANT_OPTS="-Xmx256M" ANT_ARGS="-logger org.apache.tools.ant.listener.AnsiColorLogger" You might also check out your

Re: taskdef class org.tigris.subversion.svnant.SvnTask cannot be found

2009-05-14 Thread Brian Pontarelli
774) wrote: Yes. These lib are added in ANT_HOME/lib. Regards,Rajesh -Original Message----- From: Brian Pontarelli [mailto:br...@pontarelli.com] Sent: Wednesday, May 13, 2009 7:33 PM To: Ant Users List Subject: Re: taskdef class org.tigris.subversion.svnant.SvnTask cannot be found Did you ad

Re: taskdef class org.tigris.subversion.svnant.SvnTask cannot be found

2009-05-13 Thread Brian Pontarelli
Did you add these to the ANT_HOME/lib directory? -bp On May 13, 2009, at 1:24 AM, Rajesh Kumar (IN4774) wrote: I got following error in when I execute one target in ant... file:/data/stage2/BUILDFOPS/build.xml:6: taskdef class org.tigris.subversion.svnant.SvnTask cannot be found I have f

Re: Dynamic macro dispatch.

2009-03-24 Thread Brian Pontarelli
You can invoke macros easily from Java or Groovy. Groovy is easier, but if you want to write a task, it isn't too difficult. You can check out the various macroforeach tasks around to get an idea of what you need to do. Or just invoke it from groovy like: ant."${x}"(...) Pretty certain t

Re: incremental compilation

2009-03-23 Thread Brian Pontarelli
How large is your codebase that you are looking to use incremental compilation. Most java compilers are pretty fast and re-compiling 1000 classes doesn't take very long (couple seconds). The issue is that the tool that determines if a class needs to be re- compiled must fully understand the

Savant 1.5 released

2009-03-20 Thread Brian Pontarelli
Just wanted to drop a quick note to all the Ant users that Savant 1.5 has been released. Although the version implies that it is compatible with 1.0, it is a complete rewrite and it adds a number of new features. In fact, 1.0 has been removed and is no longer really supported or actively de

Re: How to use nested if in ant script?

2009-03-09 Thread Brian Pontarelli
Use ;) That brings me to ask: Does the new (?)

Re: How to use nested if in ant script?

2009-03-06 Thread Brian Pontarelli
Use ;) On Mar 6, 2009, at 1:39 AM, NR031 wrote: Hi, How do I use nested tag in ant script. I want to check 2 strings and if both are true then it has to do some action. I did like this but getting You must not nest more than one condition into if

Re: Declare few projects on a build.xml

2009-03-05 Thread Brian Pontarelli
The way to accomplish this with Ant is to use statements to include common build files or use the -f flag to specify a common build file for all the projects. However, if these solutions don't meet your needs you can also take a look at other solutions like these: - Gradle - Maven -

Re: Is there a login "wait for password" target/task?

2009-02-20 Thread Brian Pontarelli
I noticed the task automates a remote telnet session, using and to indicate strings to wait for and specify text to send. Is there any more generic task that can do this? I'm trying to access a remote db system that prompts for a password. (Actually it's Perforce, but I didn't see any