AW: AW: checkstyle-ant

2007-07-30 Thread Jan.Materne
First: please keep on the list (as long as you dont want to provide sensible data ;) Other people could be interesting in this problem (and its solution) too. Second: this is more a CS related question than an Ant one but because I just had the same problem two weeks ago, I could provide th

Re: simple buildnumber task usage question

2007-07-30 Thread Alex Egg
Oh coo. I didn't see that anywhere in the docs... >ld like to use the buildnumber task to > > append a build number to the file name: > > > > > > So my gzipped file would be something like: management_3.js > > > > I already have the task in my build file as: > > > > > > > > but that just saves

Re: simple buildnumber task usage question

2007-07-30 Thread David Weintraub
The BuildNumber task sets the property build.number when executed. You don't have to do anything else. On 7/30/07, Alex Egg <[EMAIL PROTECTED]> wrote: > Hi have this gzip task, and I would like to use the buildnumber task to > append a build number to the file name: > > > So my gzipped file would

simple buildnumber task usage question

2007-07-30 Thread Alex Egg
Hi have this gzip task, and I would like to use the buildnumber task to append a build number to the file name: So my gzipped file would be something like: management_3.js I already have the task in my build file as: but that just saves it to the build.number file, how do I get it to a proper

Re: AW: while-like structure in Ant

2007-07-30 Thread Emir Mahmut BAHSI
It is a good point! Http task is one of the core conditions that can be used as a nested element in condition task. FYI: http://ant.apache.org/manual/CoreTasks/conditions.html However I do not know why it is not listed in the manual as a core task :) May be it is because of being a nested eleme

Re: Getting classpath attribute of custom task

2007-07-30 Thread stanS
It helps, thx. Do you think this will also handle both the cases where classpath is defined in and mytask.jar is in ANTHOME\lib or elsewhere? if (this.getClass().getClassLoader() instanceof AntClassLoader){ AntClassLoader antClassLoader = (AntClassLoader)this.getClass().get

concat task on group of utf 8 files w/ BOM

2007-07-30 Thread Alex Egg
Hi, I'm using the concat task with a fileset that points to a bunch of files with unicode byte order marks. After the task is complete I wind up with file that's full for BOMs, which down the road, crashes a program that reads this file. Any good solution to deal with this? The BOMS?

Re: Getting classpath attribute of custom task

2007-07-30 Thread Peter Reilly
The classpath attribute is not available to the created task. In the task one can use MyTask.class.getClassLoader() to get the classloader that loaded the task. If this is of type AntClassloader, one can use AntClassloader.getClassPath() to get the path used in the loader. However there are a num

Re: Using

2007-07-30 Thread Miroslav Šulc
thx, at least now I know it's not possible :-) -- Miroslav Šulc Peter Reilly napsal(a): I do not think that this is currently possible. Peter On 7/30/07, Miroslav Šulc <[EMAIL PROTECTED]> wrote: Hi, I am not very experienced with ant. I have several targets, each for source code checks

Re: Using

2007-07-30 Thread Peter Reilly
I do not think that this is currently possible. Peter On 7/30/07, Miroslav Šulc <[EMAIL PROTECTED]> wrote: > Hi, > > I am not very experienced with ant. I have several targets, each for > source code checks. These targets are 'pmd', 'cpd' and 'checkstyle'. All > the corresponding tasks support

Getting classpath attribute of custom task

2007-07-30 Thread stanS
Lets say I have a taskdef in the build.xml How do I get the 'classpath' part in the custom task that derived from Ant Task class? Could you point me to the right API? I want to use that classpath back with a 'java' task. Thanks Stan. -- View this message in context: http://www.nabble.co

Using

2007-07-30 Thread Miroslav Šulc
Hi, I am not very experienced with ant. I have several targets, each for source code checks. These targets are 'pmd', 'cpd' and 'checkstyle'. All the corresponding tasks support element. My project consists of tens of subprojects. What I want to achieve is to define the set of sources at one

Problem with Ant and CVS?

2007-07-30 Thread Simon Renshaw
Hi, I think I'm having some problems with Ant and CVS. I'm currently setting up CruiseControl and they told me that the problem I'm having is an issue between Ant and CVS so this is why I'm posting this here. I'm using Ant 1.7. Problem: CVS does not update correctly. In the delegated build fil

Re: How to achieve "if" and "unless"-style behaviour with macrodefs?

2007-07-30 Thread Andrew Goktepe
You could probably define "if" and "unless" custom attributes in your macro and then use with ant-contrib's to check them inside of your macro. Something like this (untested!): ... other attributes... ... do stuff

Re: AW: checkstyle-ant

2007-07-30 Thread Sameer Borwankar
hey Jan, Thanks for your replActually i am not able to find the CS-distro.zip file so can you please tell me from where can i get it. One me\ore thing when i am trying to run custom checkstyle rules xml file called cs-rules.xml then the same script is giving me the error as unable to c

RE: Calling a String

2007-07-30 Thread Joshua Wunder
Two things: 1. Just to add for others reading, to make all URIs available you need to add the following taskdef: 2. In the end the strings task didn't do what I thought it would. I'm gonna try to explain again and hope someone may have an idea .

How to achieve "if" and "unless"-style behaviour with macrodefs?

2007-07-30 Thread Keith Hatton
Hi, I have cases where it would be useful to call a macrodef if a property was set, but to skip it otherwise. If these were targets I could use the standard Ant if/unless attributes to achieve this behaviour, but macrodefs are called explicitly at certain points in the build file, rather than usi

AW: checkstyle-ant

2007-07-30 Thread Jan.Materne
generates a xml based report. This report should be converted to HTML by the

Re: checkstyle-ant

2007-07-30 Thread Prashant Reddy
Does the file checkstyle.xsl exist in the directory where your build.xml is ? -Prashant On Mon, 2007-07-30 at 02:20 -0700, Sameer Borwankar wrote: > Hi all, > > I am trying to generate a report using checkstyle plugin with IBM RAD. > I have written an ant script for the same as follows: > >

checkstyle-ant

2007-07-30 Thread Sameer Borwankar
Hi all, I am trying to generate a report using checkstyle plugin with IBM RAD. I have written an ant script for the same as follows: When i try to run this ant script the error which m getting is "system cannot find the file checkstyle.xsl" so please help me rega

RE: Calling a String

2007-07-30 Thread Joshua Wunder
That sounds like exactly what I want ... but ... it's not working by me This is the content of my ANT file ... am I missing something?

[replaceregexp] - Couldn't rename temporary file inside RAD tool

2007-07-30 Thread Walter . Heestermans
Hi, I have some ANT scripts using the 'replaceregexp' task and these need to run inside the Rational Application Developer v6 development tool. Regurarly I have the following exception. BUILD FAILED: C:\TMMEDevelopment\WHE4841\J2EEConfig\whe4841\J2EE0116\src\S01\A2P\A2P_Gui\devBuild\build-qua