Create jar file inside ear task

2010-03-09 Thread Dimitris Mouchritsas
Hi all, I'd like your help with the following problem: A J2EE project I'm working on does not package the application into an ear file, but rather copies some directories and files directly to JBoss' deploy directory. I've created a dist target which will package these directories into an ear

Re: AW: check property file exists and which properties are missing in Ant 1.8?

2010-02-11 Thread Dimitris Mouchritsas
Dimitris Mouchritsas wrote: jan.mate...@rzf.fin-nrw.de wrote: I'm giving Ant 1.8.0 a try on a new project. I'd like to ask if there have been any changes for loading property files (break the build if they're not found) should not. But using the specified property file doesn

Re: AW: check property file exists and which properties are missing in Ant 1.8?

2010-02-11 Thread Dimitris Mouchritsas
jan.mate...@rzf.fin-nrw.de wrote: I'm giving Ant 1.8.0 a try on a new project. I'd like to ask if there have been any changes for loading property files (break the build if they're not found) should not. But using the specified property file doesnt have to exist - since a long time... and

check property file exists and which properties are missing in Ant 1.8?

2010-02-11 Thread Dimitris Mouchritsas
Hi all, I'm giving Ant 1.8.0 a try on a new project. I'd like to ask if there have been any changes for loading property files (break the build if they're not found) and if ant can report on the properties missing. Are there any related ant-contrib tasks? Regards Dimitris

Re: filterina a file using in jar -> metainf task

2010-02-03 Thread Dimitris Mouchritsas
files. This makes the deployment process more agile and responsive to changes in host names/port numbers/... Regards, Antoine Dimitris Mouchritsas wrote: Hi all, is it possible to use a filter in the metainf task of jar task? Currently my build file is like

filterina a file using in jar -> metainf task

2010-02-02 Thread Dimitris Mouchritsas
Hi all, is it possible to use a filter in the metainf task of jar task? Currently my build file is like this: In etc/domain/META-INF I have the persistence.xml file for my entity beans and I would like to be able to pass the datasource nam

Re: AW: Checking for build.properties and properties upon initialization

2008-07-22 Thread Dimitris Mouchritsas
Dominique Devienne wrote: On Mon, Jul 21, 2008 at 9:59 AM, Dimitris Mouchritsas <[EMAIL PROTECTED] What do you think? Why not simply Property log4j.lib.dir must be set Property log4j.jar must be set etc... And wrap this into a macro allowing to call as as ? Only difference is t

Re: AW: Checking for build.properties and properties upon initialization

2008-07-21 Thread Dimitris Mouchritsas
Gilbert Rebhan wrote: Dimitris Mouchritsas schrieb: What I'd like to accomplish is checking if build.properties exists (which loadproperties ensures) and then check to see if a set of properties is set. If a property is missing I'd like to display a message with the name of th

Re: AW: Checking for build.properties and properties upon initialization

2008-05-21 Thread Dimitris Mouchritsas
Knuplesch, Juergen wrote: Use the task from antcontrib, which makes things easier. Hmm, ok I've made it work But what I really want to know is: How can I check if a set of properties exists? My thoughts were to load a sample properties file like: but I can't get to comparing th

Re: Checking for build.properties and properties upon initialization

2008-05-21 Thread Dimitris Mouchritsas
Dimitris Mouchritsas wrote: Hi everyone. I'm trying to create a sample project to test if the build.properties file exists and if the required properties are set upon initialization. But I'm not quite sure if I use correctly the condition task. This is what I've come up

Checking for build.properties and properties upon initialization

2008-05-21 Thread Dimitris Mouchritsas
Hi everyone. I'm trying to create a sample project to test if the build.properties file exists and if the required properties are set upon initialization. But I'm not quite sure if I use correctly the condition task. This is what I've come up with right now:

Re: compare folder/files

2008-03-03 Thread Dimitris Mouchritsas
Md. Jahidul Hasan wrote: Md. Jahidul Hasan wrote: Hi, I have a target which upload folders/files to one location and I need to compare the content after upload, how to proceed ? uploaded part has been done by using copy and fileset task. Can't find any good solution for compare. Hasan

Re: compare folder/files

2008-03-03 Thread Dimitris Mouchritsas
Md. Jahidul Hasan wrote: Hi, I have a target which upload folders/files to one location and I need to compare the content after upload, how to proceed ? uploaded part has been done by using copy and fileset task. Can't find any good solution for compare. Hasan ---

Re: How to compile co-dependent files

2008-02-22 Thread Dimitris Mouchritsas
Donald McLean wrote: As I understand things, it is only possible to resolve circular references in the same compile. In other words, they would have to not only be in the same target but they would also have to be in the same javac task within that target. YMMV, void where prohibited, cash va

Re: How to compile co-dependent files

2008-02-21 Thread Dimitris Mouchritsas
Scot P. Floess wrote: Can we see your build.xml? Also, is this Java compilation? mojoRising wrote: Hi. I am new to using ANT and hope someone can help me with this, I am sure most basic, question which has confounded me. I have 2 targets. Each target contains a file that has references to a

Re: Trying to intersect resources(?)

2008-02-21 Thread Dimitris Mouchritsas
Dimitris Mouchritsas wrote: Hi all, I'm trying to write an uptodate target for an xdoclet target to depend upon, so xdoclet doesn't get called every time. The objects I'm trying to check for have hibernate mapping files. The problem is, not all of them have corresponding mappin

Trying to intersect resources(?)

2008-02-21 Thread Dimitris Mouchritsas
Hi all, I'm trying to write an uptodate target for an xdoclet target to depend upon, so xdoclet doesn't get called every time. The objects I'm trying to check for have hibernate mapping files. The problem is, not all of them have corresponding mapping files. So for example the following target:

Re: problems creating a jar

2008-02-20 Thread Dimitris Mouchritsas
Steve Loughran wrote: Luca Ferrari wrote: On Wednesday 20 February 2008 Dimitris Mouchritsas's cat, walking on the keyboard, wrote: So for example you create: /dist tmp/ classes/ img/ lib/ and then you etc. But in this case into the jar I will have also the classes dire

Re: Can Ant Edit/replace some words in a file

2008-02-20 Thread Dimitris Mouchritsas
Alec Fernandez wrote: Just be careful if you are using filterchain/filterreplace on binary files. Encoding issues can end up transcoding some bytes in binary files. Much has been written on this topic and I would pay close attention. -alec -Original Message- From: [EMAIL PROTECTED]

Re: problems creating a jar

2008-02-20 Thread Dimitris Mouchritsas
Luca Ferrari wrote: Hi guys, I've got a problem creating a buildfile for a project of mine, where I'd like also to build a jar as final step. This is source tree: projectRoot +src // java sources +srcTest // junit sources +img // ico

Task for comparing 2 ear files?

2008-02-19 Thread Dimitris Mouchritsas
k and the checksum task, but couldn't come up with proper results (or at least that's what I think). Any ideas? Thanks Dimitris Mouchritsas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Resolving cyclical dependencies

2007-12-21 Thread Dimitris Mouchritsas
> So, the source is cyclic? Does the source exist such that everything > has something like this: > > src/com/Foo.java (uses Bar.java) > src/com/Bar.java (uses Foo.java) > > Or something different? > > If so, just define you sourcepath for javac to include src > > If no

Resolving cyclical dependencies

2007-12-21 Thread Dimitris Mouchritsas
says, no let's try it by improving upon this; and we'll see. What do you suggest? Is there a way to create a proper build file for this project, having seperation of concerns (e.g. commom-compile, ejb-compile, web-compile etc) -- Dimitris Mouchritsas Computer Services

Re: Redefining a task

2007-12-19 Thread Dimitris Mouchritsas
Thanks ;) On Dec 19, 2007 5:05 PM, <[EMAIL PROTECTED]> wrote: > > > > > > > > > Jan > > > -Ursprüngliche Nachricht- > > Von: Dimitris Mouchritsas [mailto:[EMAIL PROTECTED] > > Gesendet: Mittwoch, 19. Dezember 2007 15:56

Redefining a task

2007-12-19 Thread Dimitris Mouchritsas
y used should be passed to the original task unaltered. Thanks. -- Dimitris Mouchritsas Computer Services

Re: Vim's .swp files triggering jar to re-execute

2007-12-04 Thread Dimitris Mouchritsas
are suppose to be temporary files and should be deleted > when > you quit VIM. Are your .swp files sticking around? > > On Nov 30, 2007 5:05 AM, Dimitris Mouchritsas <[EMAIL PROTECTED]> wrote: > > > Hi all, I did a small project yesterday, producing a jar and a war file.

Vim's .swp files triggering jar to re-execute

2007-11-30 Thread Dimitris Mouchritsas
m the jar task stop executing as was normal. Could the .swp file cause this? Even though it doesn't end up in the jar file? Thanks. -- Dimitris Mouchritsas Computer Services

Re: Handling multiple subproject in J2EE app

2007-11-28 Thread Dimitris Mouchritsas
e the Maven repository, but I > don't really care much for Maven itself, as I discuss at > http://www.exubero.com/blog/20070313_Why_I_Prefer_Ant_Over_Maven.html > > Cheers, > Joe > > On Tue, 2007-11-27 at 18:38 +0200, Dimitris Mouchritsas wrote: > > I've had a look in

Re: Handling multiple subproject in J2EE app

2007-11-27 Thread Dimitris Mouchritsas
e. On Nov 27, 2007 6:43 PM, Steve Loughran <[EMAIL PROTECTED]> wrote: > Dimitris Mouchritsas wrote: > > Hi all, I'm trying to figure out what's the best way to handle a J2EE > > project with different modules. > > I'm thinking to create a sub project struc

Re: Handling multiple subproject in J2EE app

2007-11-27 Thread Dimitris Mouchritsas
re 2007 16:50 > > To: Ant Users List > > Subject: Re: Handling multiple subproject in J2EE app > > > > Here's the technique I use in these situations: > > > > http://www.exubero.com/ant/dependencies.html > > > > Cheers, > > Joe > > > &

Handling multiple subproject in J2EE app

2007-11-27 Thread Dimitris Mouchritsas
. For example I would like, when compiling the war servlet classes to depend on the EJB jar being up to date. So I would like to use a master build file but have each sub-project understand its dependencies. Are there any best practices that you know of? -- Dimitris Mouchritsas Computer Services

help with uptodate and hibernate doclet

2007-11-20 Thread Dimitris Mouchritsas
eeds every class to have a corresponding .hbm.xml -- Dimitris Mouchritsas Computer Services

Using uptodate to control xdoclet.

2007-11-19 Thread Dimitris Mouchritsas
rget files? -- Dimitris Mouchritsas Computer Services - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]