Re: UTF8 filename issue with TarOutputStream

2012-10-22 Thread Mark Salter
On 22/10/2012 06:25, Abu Abdullah wrote: > Hi, > > I would appreciate if someone can indicate how long the below bug might > take to resolve. The bug affect everything in Unicode names (folders/files) The comments indicate that this issue is already resolved:- http://jira.codehaus.org/browse/MAS

Re: Target does not exist in project

2012-10-03 Thread Mark Salter
On 04/10/2012 00:44, Cuneo, Nicholas wrote: > [exec] Target “and” does not exist in project. try the verbose run of ant for extra information on what it is going wrong with your build in your environment? Perhaps you are missing some quotes around one of your filenames/directories that includes s

Re: Emma Configuration in Ant

2011-03-15 Thread Mark Salter
On 15/03/2011 11:53, Lis Maria wrote: > [junit] de/hybris/platform/persistence/AbstractTypeInitializer > [junit] java.lang.NoClassDefFoundError: I guess you are missing a jar from your classpath that holds the Hybris persistence code that your unit tests need? HTH -- Mark --

Re: Emma Configuration in Ant

2011-03-15 Thread Mark Salter
On 15/03/2011 11:40, Lis Maria wrote: > It is nt emma eror that i get , but it says classnotfound exception for any > class it executes in the junit section The actual and full Exception you are seeing but we are not would be a useful piece of information to help guide you. 8) -- Mark -

Re: Unable to create directory as a file already exists with that name

2010-08-06 Thread Mark Salter
On 06/08/2010 10:48, Rajesh Kumar wrote: > I have one file called djir.ear and I am trying to create a folder with the > same name "jir.ear" same location using ant script. > but i get error message saying that > > *Code: * > -- > Unable to create directory as a file a

Re: replaceregexp task

2010-06-30 Thread Mark Salter
On 30/06/2010 08:25, shindito wrote: > I've set flags to g=global, but still not working. I've tryed all flags... > It only replaces the first regexp on the line. Please try changing byline="true" to byline=false (or just let it default)? From:- http://www.jajakarta.org/ant/ant-1.6.1/docs/en/man

Re: Ho Do I ftp put files only if the don't exist at target

2009-12-03 Thread Mark Salter
Nordmeyer wrote: > With ANT? > How? http://ant.apache.org/manual/CoreTasks/sync.html might be just what you are after. The top level for the 'fm' is http://ant.apache.org/manual/ , one for your bookmarks perhaps. Regards, -- Mark --

Re: property file syntax

2009-05-13 Thread Mark Salter
Dave Pawson wrote: > 2009/5/13 Mark Salter : >> Dave Pawson wrote: >> >>> How to get it into the ant documentation Table of Contents? >>> >>> >>http://ant.apache.org/manual/ > > > ? I see no mention of property file description/s

Re: property file syntax

2009-05-13 Thread Mark Salter
Dave Pawson wrote: > How to get it into the ant documentation Table of Contents? > > http://ant.apache.org/manual/ -- Mark - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: us

Re: Error: Unable to Open

2009-01-30 Thread Mark Salter
Sunils_82 wrote: > I have a build.xml file in Folder_A > and another build.xml file in Folder_B > [snip] > I'm not getting FileNotFoundException, its an "Unable to open" Error. What is the *exact* error please? ant -verbose will show you the files being used and a more of what is happening, p

Re: AW: Unzip specific folders in ANT

2009-01-27 Thread Mark Salter
Sunils_82 wrote: > Yes i tried specifying the wildcard using the folder name as mentioned below > > > > But this didn't extract the contents under the ./resource/images folder. > > Should \ vs / matter? It seems to for me... Can you try :- please? Perhaps include the output from "ant

Re: AW: Unzip specific folders in ANT

2009-01-27 Thread Mark Salter
Sunils_82 wrote: > I'm using the sample specified in the ANT > > > > > > > > > But this extracts contents from all the folders present in the zip file. All files with the extension of .gif and .GIF from all of the folders? > > W

Re: Ant Junit issues - CLASSPATH

2008-12-19 Thread Mark Salter
marshall_dan...@emc.com wrote: > Thank you Mark I will take a look. I caught and fixed the folder issue > but It still is not finding the class. Did you change the classpath specification to remove the extra levels into the junit task as well? > If a class is called com.emc.elms.test.EMCLmcryptK

Re: Ant Junit issues - CLASSPATH

2008-12-18 Thread Mark Salter
marshall_dan...@emc.com wrote: > Sure I can give you some of it. It looks like its dropping my source > paths but I don't know why. It is dropping directories called:- C:\Build\build\src\com\emc\elms\keygen C:\Build\build\src\com\emc\elms\test C:\Build\build\src\com\emc\elms\keygen C:\

Re: Ant Junit issues

2008-12-18 Thread Mark Salter
marshall_dan...@emc.com wrote: > I am fairly new to Ant and I am having issues with an ant script that I > am working on. I am receiving a ClassNotFoundException when the Junit > portion of my Ant script runs. Is the missing class one of yours? > The build and everything before that is > working c

Re: Passing multi-byte strings from ANT using task

2008-12-17 Thread Mark Salter
Shashidhar Kotta wrote: > We are using “–Dfile.encoding=UTF8” jvm args and now we are able to > pass multi-byte strings from ANT to Java and even from the cmd to > java also. > > But in our case we have string which has the characters from > different regions. That's why when we set the system to

Re: "Failed to read input from Console" Error invoking ant from java class

2008-12-15 Thread Mark Salter
Michael Sobremonte wrote: > > I am trying to call an ant target requiring input from within a java class. Why do you want to do it this way? Why not use ant natively or System.in directly from java *before* invoking ant to react to the options selected? > # INPUT MENU 1: > addproperty="main.op

Re: JUnit Report (Please help me, i am trying this from past two weeks)

2008-12-15 Thread Mark Salter
Phani Kumar wrote: > this is the result of ant verbose Now all you had to do was read the output, as far as... > > C:\test1>ant -verbose > Apache Ant version 1.6.5 compiled on June 2 2005 ...the first line of output. It appears you have an older version of ant on your PATH. Track this down and

Re: JUnit Report (Please help me, i am trying this from past two weeks)

2008-12-12 Thread Mark Salter
Phani Kumar wrote: > report: > > BUILD FAILED > java.lang.NoSuchMethodError: > org.apache.tools.ant.taskdefs.TempFile.bindToOwner(Lorg/apache/tools/ant/Task;)V > Ok, you seem to have moved on? Can you please check you are using ant 1.7 (ant -verbose) please? This method is commented as added in

Re: JUnit Report (Please help me, i am trying this from past two weeks)

2008-12-12 Thread Mark Salter
Phani Kumar wrote: > I am trying to generate html report through ant build.xml file, in that > process i am able to run my test successfully but it fails to generate html > report and it giving me error "java.lang.NoSuchMe > thodError:org.apache.tools. ant.types. resources. Resources. > dieOnCircu

Re: Passing multi-byte strings from ANT using task

2008-12-11 Thread Mark Salter
Shashidhar Kotta wrote: > Hi, > > I have tried with your ANT code but it is displaying ?m?n??? only. Your code is encoding the String it sees into UTF-8, this is likely the right output, but not what you expected? You need to think through what you are trying to do, but from this result, I would

Re: how to call the .py from wsadmin using ant

2008-12-10 Thread Mark Salter
Beela Avinash wrote: > . . > > > > > > > > You have an arg element outside of any task as you have closed the exec element unint

Re: Ant : Very slow on Vista

2008-12-09 Thread Mark Salter
Eric Cambray (BlueXML) wrote: > For Mark > I don't have network task. > But on my test, and based on what I see there is no specific task that > take long time just a "cyclic" run / stop. My task do javac, copy files, > zip and unzip (many times for each) nothing really special.. Thanks for clarify

Re: Ant : Very slow on Vista

2008-12-08 Thread Mark Salter
Eric Cambray (BlueXML) wrote: > I tested with ant command line or from Eclipse, it's equal. And with -v > option I see that all task are speed but the task end for 2 or 3 seconds > and restart for 1-2 seconds, with task manager I see my CPU work (to > 25%) then nothing, 25%, nothing, ... > > I tes

Re: How can I figure out what JUnit test case is failing?

2008-12-03 Thread Mark Salter
[EMAIL PROTECTED] wrote: > How can I get more detailed information about what is going wrong? How about checking your 'outfile'? -- Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

Re: AW: AW: token filtering

2008-11-16 Thread Mark Salter
Rez wrote: > That's what we really need, more examples. Some > of the current examples are too vague or for very advanced users. Welcome to the open source world. If you want to contribute more examples (that would have helped you), you should take that opportunity. I'm sure people will be grate

Re: not working

2008-11-13 Thread Mark Salter
Patrick Waugh wrote: > What is wrong? You need to get ant-contrib :- http://ant-contrib.sourceforge.net/ -- Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: BUILD FAILED Target "dist" does not exist in the project "....

2008-11-11 Thread Mark Salter
ilango_g wrote: > Yes, I am. Actually, I do not see a "dist" in the targets tab. I wonder where else it is appearing then. Is your build.xml very long, can you post it somewhere and post a link to it? Perhaps on www.cl1p.net or similar? > Is it possible to simply run Ant from the Eclipse for th

Re: BUILD FAILED Target "dist" does not exist in the project "....

2008-11-11 Thread Mark Salter
ilango_g wrote: > Hi > I have written and used an Ant build.xml from Eclipse Europa to create and > deploy a WAR file into JBoss 5 CR 2. > As far as I know there are no references to the target "dist" in my > build.xml. So I am confused why it is complaining about "dist". So a find for text 'dist'

Re: Run an ant task for each file in a directory

2008-11-06 Thread Mark Salter
Tassilo Horn wrote: > Yes, it looks like it would do. But I think I cannot force everybody > working on that project to install ant-contrib... It might be easier than getting them to install something else? The installation ( http://ant-contrib.sourceforge.net/#install )looks very straightforwar

Re: Run an ant task for each file in a directory

2008-11-06 Thread Mark Salter
Tassilo Horn wrote: > What I really want is to execute the given `java' task for each and > every *.tg file in ${schema.dir}/. How would I do that? Ant-contrib has a Foreach task, perhaps that will do you? -- Mark - To unsubsc

Re: Using Ant Tasks programmatically - SignJar Tasl

2008-11-06 Thread Mark Salter
Steve Loughran wrote: > There's some coverage of it the Ant docs > http://ant.apache.org/manual/antexternal.html > > as usual, contributions to improve this -more examples etc- are welcome. Thanks Steve, certainly the advice given at the bottom of this page is probably most relevant to the OP:-

Re: Using Ant Tasks programmatically - SignJar Tasl

2008-11-05 Thread Mark Salter
Morgan Kinne wrote: > try sj.perform() > It looks to me like you will still need to set a sj.setProject(project). I can't find anything that states this requirement, sorry. -- Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: Using Ant Tasks programmatically - SignJar Tasl

2008-11-05 Thread Mark Salter
Daniele Development-ML wrote: > I am trying to use Ant Task programmatically by invoking the API within my > Java code. You need a Project :- SignJar sj = new SignJar(); sj.setProject(new Project()); I surmised this by stepping through the code, but only 'blindly'. I guess all ta

Re: Under a parent directory delete only 4 out of 6 child directories [non-empty]

2008-11-03 Thread Mark Salter
Rohit P wrote: > Hi, > I have a directory "Parent" containing 6 "child" directories with files.I > have a task of deleting only 4 "child" directories with their files. The second example in the manual does (I think) give you the answer you need:- http://ant.apache.org/manual/CoreTasks/dele

Re: ant default classpath

2008-10-25 Thread Mark Salter
Brendan Miller wrote: > In a build.xml I have, I have a javac task that I perfrom where I > don't explicitly pass it any classpath. Yet, when I run ant -v, I get > an enourmous classpath. What gives? > > How does ant construct it's default classpath? Is this documented > anywhere? I didn't see any

Re: Is there a way to make the get task timezone aware?

2008-10-23 Thread Mark Salter
EJ Ciramella wrote: > If it's last time modified versus local time, depending on where you > are, couldn't local time be ahead of modified time? Indeed it could, especially using two different clocks that probably are not exactly synchronised. > > Is get sophisticated enough to know the differen

Re: Is there a way to make the get task timezone aware?

2008-10-23 Thread Mark Salter
Settle, William wrote: > Is this an issue with the task, the apache server on the other > side or something I have not configured on the client or server side? I did read in my google search that Apache does/did not return last modified information by default, but this might not be the case for y

Re: Building a using annotations

2008-10-22 Thread Mark Salter
Chris wrote: > Is it possible in Ant to create a that consists of .java files > that have some annotation? > > For example, if I create a custom annotation, like "@published", and > attach it to several classes, is there some way to get a list of such > classes in a fileset? Do you want the list

Re: Help with war file

2008-10-22 Thread Mark Salter
Rez wrote: > I'm not sure if it's possible any other way to pack a folder and all > of its subfolders and files into a war file, preserving their path > and folder structure, other than using the "prefix" attribute of the > zipfileset task. I would like my war file (testproject.war) to have > folde

Re: Ant 1.7.1 - concat function no longer returns an 'empty' file if no source resources are found...

2008-10-15 Thread Mark Salter
Stefan Bodewig wrote: > I forgot to add: please file a bugzilla issue for it. https://issues.apache.org/bugzilla/show_bug.cgi?id=46010 -- Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Ant 1.7.1 - concat function no longer returns an 'empty' file if no source resources are found...

2008-10-14 Thread Mark Salter
Hi there. I would like to understand the expected result of a concat step that 'finds' no source files. I believe that prior to version 1.7.1 the resultant file could include header and footer even if the no other files went in. With 1.7.1, class :- src/main/org/apache/tools/ant/taskdefs/Con