<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:www.nabble.com,2006:forum-107</id>
	<title>Nabble - Ant - Users</title>
	<updated>2008-05-13T09:40:14Z</updated>
	<link rel="self" type="application/atom+xml" href="http://www.nabble.com/Ant---Users-f107.xml" />
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Ant---Users-f107.html" />
	<subtitle type="html">Ask questions, share knowledge, and discuss issues related to using Ant as a build tool.</subtitle>
	
<entry>
	<id>tag:www.nabble.com,2006:post-17212969</id>
	<title>Re: list out no. of targets</title>
	<published>2008-05-13T09:40:14Z</published>
	<updated>2008-05-13T09:40:14Z</updated>
	<author>
		<name>James Fuller-4</name>
	</author>
	<content type="html">try -projecthelp
&lt;br&gt;&lt;br&gt;Options:
&lt;br&gt;&amp;nbsp; -help, -h &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;print this message
&lt;br&gt;&amp;nbsp; -projecthelp, -p &amp;nbsp; &amp;nbsp; &amp;nbsp; print project help information
&lt;br&gt;&amp;nbsp; -version &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print the version information and exit
&lt;br&gt;&amp;nbsp; -diagnostics &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print information that might be helpful to
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;diagnose or report problems.
&lt;br&gt;&amp;nbsp; -quiet, -q &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; be extra quiet
&lt;br&gt;&amp;nbsp; -verbose, -v &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; be extra verbose
&lt;br&gt;&amp;nbsp; -debug, -d &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print debugging information
&lt;br&gt;&amp;nbsp; -emacs, -e &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; produce logging information without adornments
&lt;br&gt;&amp;nbsp; -lib &amp;lt;path&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;specifies a path to search for jars and classes
&lt;br&gt;&amp;nbsp; -logfile &amp;lt;file&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;use given file for log
&lt;br&gt;&amp;nbsp; &amp;nbsp; -l &amp;nbsp; &amp;nbsp; &amp;lt;file&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;''
&lt;br&gt;&amp;nbsp; -logger &amp;lt;classname&amp;gt; &amp;nbsp; &amp;nbsp;the class which is to perform logging
&lt;br&gt;&amp;nbsp; -listener &amp;lt;classname&amp;gt; &amp;nbsp;add an instance of class as a project listener
&lt;br&gt;&amp;nbsp; -noinput &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; do not allow interactive input
&lt;br&gt;&amp;nbsp; -buildfile &amp;lt;file&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;use given buildfile
&lt;br&gt;&amp;nbsp; &amp;nbsp; -file &amp;nbsp; &amp;nbsp;&amp;lt;file&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;''
&lt;br&gt;&amp;nbsp; &amp;nbsp; -f &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;file&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;''
&lt;br&gt;&amp;nbsp; -D&amp;lt;property&amp;gt;=&amp;lt;value&amp;gt; &amp;nbsp; use value for given property
&lt;br&gt;&amp;nbsp; -keep-going, -k &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;execute all targets that do not depend
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;on failed target(s)
&lt;br&gt;&amp;nbsp; -propertyfile &amp;lt;name&amp;gt; &amp;nbsp; load all properties from file with -D
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;properties taking precedence
&lt;br&gt;&amp;nbsp; -inputhandler &amp;lt;class&amp;gt; &amp;nbsp;the class which will handle input requests
&lt;br&gt;&amp;nbsp; -find &amp;lt;file&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (s)earch for buildfile towards the root of
&lt;br&gt;&amp;nbsp; &amp;nbsp; -s &amp;nbsp;&amp;lt;file&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; the filesystem and use it
&lt;br&gt;&amp;nbsp; -nice &amp;nbsp;number &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A niceness value for the main thread:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1 (lowest) to 10 (highest); 5 is the default
&lt;br&gt;&amp;nbsp; -nouserlib &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Run ant without using the jar files from
&lt;br&gt;${user.home}/.ant/lib
&lt;br&gt;&amp;nbsp; -noclasspath &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Run ant without using CLASSPATH
&lt;br&gt;&amp;nbsp; -autoproxy &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Java 1.5+ : use the OS proxies
&lt;br&gt;&amp;nbsp; -main &amp;lt;class&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;override Ant's normal entry point
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17212969&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17212969&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/list-out-no.-of-targets-tp17210723p17212969.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17211144</id>
	<title>Re: How to load part of a file</title>
	<published>2008-05-13T08:20:17Z</published>
	<updated>2008-05-13T08:20:17Z</updated>
	<author>
		<name>Gilbert Rebhan</name>
	</author>
	<content type="html">Md. Jahidul Hasan schrieb:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; I have a text file with few blocks in it.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ----------------------------------
&lt;br&gt;&amp;gt; Block 1 :
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Some text
&lt;br&gt;&amp;gt; Block 2 :
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Some text
&lt;br&gt;&amp;gt; Block 3 :
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Some text
&lt;br&gt;&amp;gt; ----------------------------------
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; How I can read the file from Block 2 to end of the file ?
&lt;/div&gt;&lt;br&gt;see AntManual, filterchains / filterreaders =
&lt;br&gt;&lt;a href=&quot;http://ant.apache.org/manual/CoreTypes/filterchain.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ant.apache.org/manual/CoreTypes/filterchain.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Regards, Gilbert
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17211144&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17211144&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-load-part-of-a-file-tp17202424p17211144.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17210723</id>
	<title>list out no. of targets</title>
	<published>2008-05-13T08:02:26Z</published>
	<updated>2008-05-13T08:02:26Z</updated>
	<author>
		<name>Irfan.Sayed</name>
	</author>
	<content type="html">Hi All,
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;How to list out no. of targets in build.xml file using ANT command.
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Please let me know. Please help.
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Irfan
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/list-out-no.-of-targets-tp17210723p17210723.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17210656</id>
	<title>test mail</title>
	<published>2008-05-13T07:59:19Z</published>
	<updated>2008-05-13T07:59:19Z</updated>
	<author>
		<name>Irfan.Sayed</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Please revert.
&lt;br&gt;&lt;br&gt;Sorry for inconvenience.
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Irfan
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/test-mail-tp17210656p17210656.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17202424</id>
	<title>How to load part of a file</title>
	<published>2008-05-13T00:07:48Z</published>
	<updated>2008-05-13T00:07:48Z</updated>
	<author>
		<name>Md. Jahidul Hasan</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;I have a text file with few blocks in it.
&lt;br&gt;&lt;br&gt;----------------------------------
&lt;br&gt;Block 1 :
&lt;br&gt;&amp;nbsp; &amp;nbsp; Some text
&lt;br&gt;Block 2 :
&lt;br&gt;&amp;nbsp; &amp;nbsp; Some text
&lt;br&gt;Block 3 :
&lt;br&gt;&amp;nbsp; &amp;nbsp; Some text
&lt;br&gt;----------------------------------
&lt;br&gt;&lt;br&gt;&lt;br&gt;How I can read the file from Block 2 to end of the file ?
&lt;br&gt;&lt;br&gt;Br
&lt;br&gt;Jahid
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17202424&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17202424&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-load-part-of-a-file-tp17202424p17202424.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17201866</id>
	<title>AW: On error Redo some TasK</title>
	<published>2008-05-12T23:20:34Z</published>
	<updated>2008-05-12T23:20:34Z</updated>
	<author>
		<name>Jan.Materne</name>
	</author>
	<content type="html">There is no built-in mechanism for that. 
&lt;br&gt;If a task fails - the build fails.
&lt;br&gt;&lt;br&gt;You could try something with conditional targets and AntContrib:
&lt;br&gt;&lt;br&gt;&amp;lt;target name=&amp;quot;targetA&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;antcontrib:trycatch&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ...
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ac:catch&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;failed&amp;quot; value=&amp;quot;&amp;quot; &amp;nbsp; description=&amp;quot;A Failure somewhere&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;failed.A&amp;quot; value=&amp;quot;&amp;quot; description=&amp;quot;A Failure in 'A'. Just set the prop, value doesnt matter&amp;quot;/&amp;gt;
&lt;br&gt;&amp;lt;/target&amp;gt;
&lt;br&gt;&amp;lt;target name=&amp;quot;targetB&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; ...same...
&lt;br&gt;&amp;lt;/target&amp;gt;
&lt;br&gt;&amp;lt;target name=&amp;quot;onErrorTargetATarget&amp;quot; if=&amp;quot;failed&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;echo&amp;gt;Some targets failed.&amp;lt;/echo&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;echo&amp;gt;- TargetA: ${failed.A}&amp;lt;/echo&amp;gt;
&lt;br&gt;&amp;lt;/target&amp;gt;
&lt;br&gt;&amp;lt;target name=&amp;quot;mainTarget&amp;quot; depends=&amp;quot;targetA, targetB, targetC, onErrorTargetATarget&amp;quot; &amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; ...
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Jan
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Ursprüngliche Nachricht-----
&lt;br&gt;&amp;gt; Von: Carlos Ortiz [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17201866&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;chrono.dark@...&lt;/a&gt;] 
&lt;br&gt;&amp;gt; Gesendet: Dienstag, 13. Mai 2008 08:06
&lt;br&gt;&amp;gt; An: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17201866&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Betreff: On error Redo some TasK
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi,Here is my question, how do i redo or execute some task's 
&lt;br&gt;&amp;gt; when another
&lt;br&gt;&amp;gt; fail
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; for example , if targetA fail go to onErrorTargetATarget...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;target name=&amp;quot;targetA&amp;quot; &amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ....
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;/target&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;target name=&amp;quot;onErrorTargetATarget&amp;quot; &amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ....
&lt;br&gt;&amp;gt; &amp;lt;delete ..... /&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;/target&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; been the main mainTarget
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;target name=&amp;quot;mainTarget&amp;quot; depends=&amp;quot;targetA, targetB, targetC&amp;quot; &amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ....
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;/target&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; thks in advance
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17201866&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17201866&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/On-error-Redo-some-TasK-tp17201727p17201866.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17201727</id>
	<title>On error Redo some TasK</title>
	<published>2008-05-12T23:06:24Z</published>
	<updated>2008-05-12T23:06:24Z</updated>
	<author>
		<name>Carlos Ortiz-2</name>
	</author>
	<content type="html">Hi,Here is my question, how do i redo or execute some task's when another
&lt;br&gt;fail
&lt;br&gt;&lt;br&gt;for example , if targetA fail go to onErrorTargetATarget...
&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;lt;target name=&amp;quot;targetA&amp;quot; &amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ....
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/target&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;lt;target name=&amp;quot;onErrorTargetATarget&amp;quot; &amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ....
&lt;br&gt;&amp;lt;delete ..... /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/target&amp;gt;
&lt;br&gt;&lt;br&gt;been the main mainTarget
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;lt;target name=&amp;quot;mainTarget&amp;quot; depends=&amp;quot;targetA, targetB, targetC&amp;quot; &amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ....
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/target&amp;gt;
&lt;br&gt;&lt;br&gt;thks in advance
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/On-error-Redo-some-TasK-tp17201727p17201727.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17193818</id>
	<title>Re: ANT: charsets in replace-task</title>
	<published>2008-05-12T11:49:23Z</published>
	<updated>2008-05-12T11:49:23Z</updated>
	<author>
		<name>Brian Agnew</name>
	</author>
	<content type="html">XMLTask will handle char replacements and character sets in XML.
&lt;br&gt;&lt;br&gt;Brian
&lt;br&gt;&lt;br&gt;Hilden wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello everybody, 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have a problem with charsets, by using the &amp;quot;replace-task&amp;quot; of Ant in the
&lt;br&gt;&amp;gt; Eclipse IDE.
&lt;br&gt;&amp;gt; After ant relaces a token &amp;nbsp;(the value of the token comes from a
&lt;br&gt;&amp;gt; &amp;quot;.properties-file&amp;quot;) in an xml-file, where the charset &amp;quot;UTF-8&amp;quot; is used (&amp;lt;?xml
&lt;br&gt;&amp;gt; version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;), some special characters (such as:
&lt;br&gt;&amp;gt; ZàèìòùÀÈÌÒÙáéíóúýÁÉÍÓÚÝâêîôûÂÊÎÔÛãñõÃÑÕäëïöüÿÄËÏÖÜŸçÇåÅðÐøØ) &amp;nbsp;are not
&lt;br&gt;&amp;gt; represented correctly and Eclipse is not able to show the content of this
&lt;br&gt;&amp;gt; file after the replacement.
&lt;br&gt;&amp;gt; I have already changed the charset of all concerning files to &amp;quot;UTF-8&amp;quot;, but
&lt;br&gt;&amp;gt; it still doesn't work.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Is there a solution for this problem? maybe a way to tell the replace-task
&lt;br&gt;&amp;gt; of ant to use the UTF-8 charset. &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thank you,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Best Regards,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Arash
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;Brian Agnew &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.oopsconsultancy.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.oopsconsultancy.com&lt;/a&gt;&lt;br&gt;OOPS Consultancy Ltd &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; brian @ oopsconsultancy.com
&lt;br&gt;Tel: +44 (0)7720 397526
&lt;br&gt;Fax: +44 (0)20 8682 0012
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17193818&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17193818&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/ANT%3A-charsets-in-replace-task-tp17125260p17193818.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17187822</id>
	<title>RE: Replace string in file</title>
	<published>2008-05-12T06:41:44Z</published>
	<updated>2008-05-12T06:41:44Z</updated>
	<author>
		<name>Sean Tiley</name>
	</author>
	<content type="html">Have a look at the ReplaceRegExp and Replace tasks
&lt;br&gt;&lt;br&gt;Should be what you are looking for.
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Guy Catz [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17187822&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Guy.catz@...&lt;/a&gt;] 
&lt;br&gt;Sent: Monday, May 12, 2008 9:18 AM
&lt;br&gt;To: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17187822&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;
&lt;br&gt;Subject: Replace string in file
&lt;br&gt;&lt;br&gt;hey guys,
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Is it possible to replace a string in an existing file?
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Thanks,
&lt;br&gt;&amp;nbsp; &amp;nbsp; Guy.
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17187822&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17187822&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Replace-string-in-file-tp17187373p17187822.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17187373</id>
	<title>Replace string in file</title>
	<published>2008-05-12T06:18:14Z</published>
	<updated>2008-05-12T06:18:14Z</updated>
	<author>
		<name>Guy Catz</name>
	</author>
	<content type="html">hey guys,
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Is it possible to replace a string in an existing file?
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Thanks,
&lt;br&gt;&amp;nbsp; &amp;nbsp; Guy.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Replace-string-in-file-tp17187373p17187373.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17182052</id>
	<title>Re: how to capture output from a target as xml</title>
	<published>2008-05-11T23:09:20Z</published>
	<updated>2008-05-11T23:09:20Z</updated>
	<author>
		<name>Prashant Reddy-2</name>
	</author>
	<content type="html">&lt;br&gt;&amp;gt; Is it possible to capture the output from a single target 
&lt;br&gt;&lt;br&gt;Check out the &amp;lt;record&amp;gt; task.
&lt;br&gt;&amp;gt; into a file as
&lt;br&gt;&amp;gt; xml format ?
&lt;br&gt;&lt;br&gt;&amp;lt;record&amp;gt; will only what ever the target writes into System.out. &amp;nbsp;However
&lt;br&gt;getting XML formatted output, really depends on what the target is. For
&lt;br&gt;example junitreport can write out XML/plain text based on what you
&lt;br&gt;choose. 
&lt;br&gt;&lt;br&gt;I am not sure there is a generic way to achieve this (xml formatted
&lt;br&gt;output) for all of the ant tasks.
&lt;br&gt;&lt;br&gt;Also the answer depends on how you define the XML format. 
&lt;br&gt;&lt;br&gt;Is the XML as simple as &amp;nbsp;: 
&lt;br&gt;&amp;lt;output&amp;gt; 
&lt;br&gt;whatever the target's output is.. 
&lt;br&gt;&amp;lt;/output&amp;gt; 
&lt;br&gt;&lt;br&gt;Hope this helps
&lt;br&gt;&lt;br&gt;-Prashant 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------
&lt;br&gt;&amp;gt; With best regards
&lt;br&gt;&amp;gt; Md. Jahidul Hasan
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17182052&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17182052&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17182052&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17182052&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/how-to-capture-output-from-a-target-as-xml-tp17181618p17182052.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17182036</id>
	<title>Re: how to capture output from a target as xml</title>
	<published>2008-05-11T23:08:33Z</published>
	<updated>2008-05-11T23:08:33Z</updated>
	<author>
		<name>Md. Jahidul Hasan</name>
	</author>
	<content type="html">I have found that &amp;lt;record&amp;gt; task can record the message into a file as text
&lt;br&gt;format, but how can I grab those as xml ?
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Is it possible to capture the output from a single target into a file as
&lt;br&gt;&amp;gt; xml format ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------
&lt;br&gt;&amp;gt; With best regards
&lt;br&gt;&amp;gt; Md. Jahidul Hasan
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17182036&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17182036&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;With best regards
&lt;br&gt;Md. Jahidul Hasan
&lt;br&gt;BJIT Inc.
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17182036&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17182036&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/how-to-capture-output-from-a-target-as-xml-tp17181618p17182036.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17181618</id>
	<title>how to capture output from a target as xml</title>
	<published>2008-05-11T22:13:47Z</published>
	<updated>2008-05-11T22:13:47Z</updated>
	<author>
		<name>Md. Jahidul Hasan</name>
	</author>
	<content type="html">Hi
&lt;br&gt;&lt;br&gt;Is it possible to capture the output from a single target into a file as
&lt;br&gt;xml format ?
&lt;br&gt;&lt;br&gt;------
&lt;br&gt;With best regards
&lt;br&gt;Md. Jahidul Hasan
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17181618&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17181618&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/how-to-capture-output-from-a-target-as-xml-tp17181618p17181618.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17176842</id>
	<title>Re: Encoding isssues Running .sql from java class through ANT</title>
	<published>2008-05-11T12:19:40Z</published>
	<updated>2008-05-11T12:19:40Z</updated>
	<author>
		<name>Andrew Goktepe</name>
	</author>
	<content type="html">Shivani,
&lt;br&gt;&lt;br&gt;Are you saying that the inserts are successful when using &amp;lt;sql&amp;gt; but
&lt;br&gt;unsuccessful when using your Java class?
&lt;br&gt;&lt;br&gt;If both of the above methods are unsuccessful, have you tried inserting
&lt;br&gt;without Java or Ant? &amp;nbsp;Another factor could be database configuration.
&lt;br&gt;&lt;br&gt;-Andrew
&lt;br&gt;&lt;br&gt;On Fri, May 2, 2008 at 12:40 AM, Kothari, Shivani &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17176842&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;skothari@...&lt;/a&gt;&amp;gt;
&lt;br&gt;wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am executing .sql which has insert statements(with french characters)
&lt;br&gt;&amp;gt; which requires (UTF/ISo* encoding). This .sql is executed from java class
&lt;br&gt;&amp;gt; through ANT scripts. In the result ? is inserted in database instead of
&lt;br&gt;&amp;gt; desired output é.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I tried running the same .sql from ant &amp;lt;sqL&amp;gt; task passing encoding
&lt;br&gt;&amp;gt; parameters. But due to deployment required I have to run this *.sql from
&lt;br&gt;&amp;gt; java class which is executed during ANT scripts Execution.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Let me know what should be done?
&lt;br&gt;&amp;gt; Thanks
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17176842&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17176842&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Encoding-isssues-Running-.sql-from-java-class-through-ANT-tp17015121p17176842.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17176766</id>
	<title>Re: Isssues Running .sql from SQL Task of ANT</title>
	<published>2008-05-11T12:12:42Z</published>
	<updated>2008-05-11T12:12:42Z</updated>
	<author>
		<name>Andrew Goktepe</name>
	</author>
	<content type="html">If you are running Ant 1.7.0 try expandproperties=&amp;quot;false&amp;quot; on &amp;lt;sql&amp;gt;. &amp;nbsp;I'm not
&lt;br&gt;sure this works when running a separate sql file but it is worth a try.
&lt;br&gt;&lt;br&gt;Otherwise I would try escaping the ${@colindex.0} with double $s and maybe
&lt;br&gt;double @s as well:
&lt;br&gt;&lt;br&gt;$${@@colindex.0}
&lt;br&gt;&lt;br&gt;I haven't tested either of these but this is what I would try next.
&lt;br&gt;&lt;br&gt;-Andrew
&lt;br&gt;&lt;br&gt;On Thu, May 8, 2008 at 1:52 AM, Kothari, Shivani &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17176766&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;skothari@...&lt;/a&gt;&amp;gt;
&lt;br&gt;wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am executing .sql which has procedure with ${@colindex.0} . This .sql
&lt;br&gt;&amp;gt; is executed from SQL Task through ANT scripts. &amp;nbsp;This .sql file having
&lt;br&gt;&amp;gt; procedure is runnin properly form sql server studio.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Statements in SQL procedure :
&lt;br&gt;&amp;gt; SET @PLOT_LINK =
&lt;br&gt;&amp;gt; 'openForm(&amp;quot;ESD_ADM032_FRM_AUTO_ROUTING&amp;look_up=true&amp;quot;,${@colindex.0},810,
&lt;br&gt;&amp;gt; 375, &amp;quot;auto&amp;quot;, false );'
&lt;br&gt;&amp;gt; REPLACE (@PLOT_LINK, '${@colindex.0}', CAST(a.row_id AS nvarchar)) AS
&lt;br&gt;&amp;gt; plot_link
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Error while executing through ANT
&lt;br&gt;&amp;gt; [sql] com.inet.tds.ap: Unknown escape sequence '{ colindex.0}'
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Let me know what should be done?
&lt;br&gt;&amp;gt; Thanks
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17176766&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17176766&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Isssues-Running-.sql--from-SQL-Task-of-ANT-tp17125472p17176766.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17176714</id>
	<title>Re: FileSet behavior</title>
	<published>2008-05-11T12:06:21Z</published>
	<updated>2008-05-11T12:06:21Z</updated>
	<author>
		<name>Andrew Goktepe</name>
	</author>
	<content type="html">Prateek,
&lt;br&gt;&lt;br&gt;The behavior you are seeing is probably more indicative of how &amp;lt;path&amp;gt;
&lt;br&gt;handles the output of &amp;lt;fileset&amp;gt;, rather than &amp;lt;fileset&amp;gt; returning different
&lt;br&gt;things in different contexts. &amp;nbsp;While I don't know for sure, my guess is that
&lt;br&gt;&amp;lt;fileset&amp;gt; is always returning the directories but its caller might be doing
&lt;br&gt;other things to filter them out.
&lt;br&gt;&lt;br&gt;-Andrew
&lt;br&gt;&lt;br&gt;On Sat, May 10, 2008 at 8:30 PM, Prateek Asthana &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17176714&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hkprateek@...&lt;/a&gt;&amp;gt;
&lt;br&gt;wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; This is to understand fileset attribute behavior. Definition of
&lt;br&gt;&amp;gt; FileSet is that it is a group of files.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; My observation about Fileset is that depending upon the context it
&lt;br&gt;&amp;gt; behaves differently. I have given two scenarios below. Please help me
&lt;br&gt;&amp;gt; understand correctly.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; First scenario:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;lt;path id=&amp;quot;temp1&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;fileset dir=&amp;quot;${module.testautomap.basedir}&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/fileset&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;lt;/path&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Above case, temp1 only contains files even though base directory
&lt;br&gt;&amp;gt; has empty directories. So I assume, fileset only returns files and not
&lt;br&gt;&amp;gt; empty directory.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Second Scnarios:
&lt;br&gt;&amp;gt; &amp;lt;copy todir=&amp;quot;${testautomap.output.dir}&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;fileset dir=&amp;quot;${module.testautomap.basedir}/src&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/fileset&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/copy&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In the second scenario, even empty directories are copied implying
&lt;br&gt;&amp;gt; fileset even returns empty directories.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In fact we also have a selector &amp;lt;type type=&amp;quot;file&amp;quot;&amp;gt; that can be used
&lt;br&gt;&amp;gt; with fileset. So I am confused as to what all does fileset return.
&lt;br&gt;&amp;gt; Does it return only files or also directories? If both, why does my
&lt;br&gt;&amp;gt; first scenario only print files and not directories.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Prateek
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17176714&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17176714&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/FileSet-behavior-tp17169169p17176714.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17176610</id>
	<title>Re: how to call Ant targets/tasks from command line or Eclipse</title>
	<published>2008-05-11T11:53:33Z</published>
	<updated>2008-05-11T11:53:33Z</updated>
	<author>
		<name>Andrew Goktepe</name>
	</author>
	<content type="html">Ilango,
&lt;br&gt;&lt;br&gt;From command line you just pass in the target name as an argument:
&lt;br&gt;&lt;br&gt;ant generate-Metro-jaxws
&lt;br&gt;&lt;a href=&quot;http://ant.apache.org/manual/running.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ant.apache.org/manual/running.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;For Eclipse you can either launch the target by right-clicking the target on
&lt;br&gt;the right side of the Ant editor, or you can create a launch configuration
&lt;br&gt;that calls the target.
&lt;br&gt;&lt;a href=&quot;http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.platform.doc.user/gettingStarted/qs-81_basics.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.platform.doc.user/gettingStarted/qs-81_basics.htm&lt;/a&gt;&lt;br&gt;&lt;br&gt;-Andrew
&lt;br&gt;&lt;br&gt;On Sun, May 11, 2008 at 10:18 AM, ilango_g &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17176610&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ilangocal@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi
&lt;br&gt;&amp;gt; I have an build file with the following:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;target name=&amp;quot;generate-Metro-jaxws&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;taskdef name=&amp;quot;wsimport&amp;quot; classname=&amp;quot;com.sun.tools.ws.ant.WsImport&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;classpath refid=&amp;quot;metro.classpath&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/taskdef&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;wsimport destdir=&amp;quot;build/classes&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sourcedestdir=&amp;quot;src&amp;quot; wsdl=&amp;quot;etc/${wsdl.file}&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;lt;/target&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; How would I call this target to generate JAX-WS classes?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; thanks in advance
&lt;br&gt;&amp;gt; ilango
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; View this message in context:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/how-to-call-Ant-targets-tasks-from-command-line-or-Eclipse-tp17170580p17170580.html&quot; target=&quot;_top&quot;&gt;http://www.nabble.com/how-to-call-Ant-targets-tasks-from-command-line-or-Eclipse-tp17170580p17170580.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the Ant - Users mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17176610&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17176610&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/how-to-call-Ant-targets-tasks-from-command-line-or-Eclipse-tp17170580p17176610.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17170580</id>
	<title>how to call Ant targets/tasks from command line or Eclipse</title>
	<published>2008-05-11T08:18:32Z</published>
	<updated>2008-05-11T08:18:32Z</updated>
	<author>
		<name>ilango_g</name>
	</author>
	<content type="html">Hi
&lt;br&gt;I have an build file with the following:
&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;lt;target name=&amp;quot;generate-Metro-jaxws&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;taskdef name=&amp;quot;wsimport&amp;quot; classname=&amp;quot;com.sun.tools.ws.ant.WsImport&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;classpath refid=&amp;quot;metro.classpath&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/taskdef&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;wsimport destdir=&amp;quot;build/classes&amp;quot; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sourcedestdir=&amp;quot;src&amp;quot; wsdl=&amp;quot;etc/${wsdl.file}&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;/target&amp;gt;
&lt;br&gt;&lt;br&gt;How would I call this target to generate JAX-WS classes?
&lt;br&gt;&lt;br&gt;thanks in advance
&lt;br&gt;ilango</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/how-to-call-Ant-targets-tasks-from-command-line-or-Eclipse-tp17170580p17170580.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17169169</id>
	<title>FileSet behavior</title>
	<published>2008-05-10T18:30:26Z</published>
	<updated>2008-05-10T18:30:26Z</updated>
	<author>
		<name>Prateek Asthana</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;This is to understand fileset attribute behavior. Definition of
&lt;br&gt;FileSet is that it is a group of files.
&lt;br&gt;&lt;br&gt;My observation about Fileset is that depending upon the context it
&lt;br&gt;behaves differently. I have given two scenarios below. Please help me
&lt;br&gt;understand correctly.
&lt;br&gt;&lt;br&gt;First scenario:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;path id=&amp;quot;temp1&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;fileset dir=&amp;quot;${module.testautomap.basedir}&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/fileset&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;/path&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Above case, temp1 only contains files even though base directory
&lt;br&gt;has empty directories. So I assume, fileset only returns files and not
&lt;br&gt;empty directory.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Second Scnarios:
&lt;br&gt;&amp;lt;copy todir=&amp;quot;${testautomap.output.dir}&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;fileset dir=&amp;quot;${module.testautomap.basedir}/src&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/fileset&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/copy&amp;gt;
&lt;br&gt;&lt;br&gt;In the second scenario, even empty directories are copied implying
&lt;br&gt;fileset even returns empty directories.
&lt;br&gt;&lt;br&gt;In fact we also have a selector &amp;lt;type type=&amp;quot;file&amp;quot;&amp;gt; that can be used
&lt;br&gt;with fileset. So I am confused as to what all does fileset return.
&lt;br&gt;Does it return only files or also directories? If both, why does my
&lt;br&gt;first scenario only print files and not directories.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Prateek
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17169169&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17169169&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/FileSet-behavior-tp17169169p17169169.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17153242</id>
	<title>Re: How to use stdin/stdout with exec</title>
	<published>2008-05-09T10:56:52Z</published>
	<updated>2008-05-09T10:56:52Z</updated>
	<author>
		<name>toadFrog</name>
	</author>
	<content type="html">I read through all the responses to your question. I saw nothing that addressed this. 
&lt;br&gt;&lt;br&gt;Your question addresses an issue with is the same problem as running a KSH interactive script from the ant exec command. Specifically, ant does not block for user input when a script executes a read command &amp;nbsp;,at least, &amp;nbsp;using the following configuration:
&lt;br&gt;&lt;br&gt;ant build.xml snippet:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &lt;b&gt;&amp;nbsp;&amp;lt;target name=&amp;quot;promote&amp;quot; depends=&amp;quot;&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; description=&amp;quot;Usage: ant promote&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;echo message=&amp;quot;running: build-promote.sh&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;exec
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dir=&amp;quot;${clearance.dir}&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; spawn=&amp;quot;false&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; executable=&amp;quot;/bin/ksh&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;arg line='-c &amp;quot;build-promote.sh &amp;lt; $STDIN&amp;quot;'/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/exec&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;/target&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;ksh: build-promote.sh &amp;nbsp;snippet:
&lt;br&gt;&lt;br&gt;echo
&lt;br&gt;echo &amp;quot;Select kit number: &amp;quot;
&lt;br&gt;typeset -i akit
&lt;br&gt;read aKit
&lt;br&gt;echo &amp;quot;Is this kit number ok? $aKit&amp;quot; &lt;/b&gt;&lt;br&gt;&lt;br&gt;Upon execution of the read command, ant must stop and allow the user to enter a response. &amp;nbsp;Instead what is happening is execution continues with the next line in the shell pgm. I can't enter a response to any of the reads in the pgm.
&lt;br&gt;&lt;br&gt;Seems this is just operator error on our part. But, I've messed around with this too long and tried several different approaches.
&lt;br&gt;&lt;br&gt;Were you able to get this working?
&lt;br&gt;&lt;br&gt;thx in advance. kev.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;gboysko wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;I am using Ant to automate the creation of some Java classes and compile them. I also want to be able to execute one of these generated Java classes (which has a builtin command processor). The commands are entered by the user (interactively) and the output is sent back to the console (via System.out).
&lt;br&gt;&lt;br&gt;I simply want to use either the JAVA or EXEC task to invoke the class, but I can't get the stdin and stdout to be routed to the class. I can see lots of ways to wire up the input/output to files, but no way to have them wired back to the Ant console. &amp;nbsp;Am I missing something? Without specifying anything, I don't see anything and can't enter anything. &amp;nbsp;Is there a way I can specify the console/terminal in Windows using the input and output attributes?
&lt;br&gt;&lt;br&gt;I am using Ant 1.6.5 on Windows.
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-use-stdin-stdout-with-exec-tp3643592p17153242.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17151073</id>
	<title>Overriding a Target programmatically - task not being executed</title>
	<published>2008-05-09T08:57:26Z</published>
	<updated>2008-05-09T08:57:26Z</updated>
	<author>
		<name>tankertux</name>
	</author>
	<content type="html">I am trying to write unit tests for my build. &amp;nbsp;Part of the build that I am testing would create a war, but I do not want a war to be created every time I run the tests. &amp;nbsp;However, I do want to see that the target to build the war was executed.
&lt;br&gt;&lt;br&gt;I am using jUnit to run the ant tasks and am trying to override the target that will create a war, replacing it with a simple property task that I can test against. &amp;nbsp;
&lt;br&gt;&lt;br&gt;The target I am testing looks like:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;target name=&amp;quot;determineDeployOrigin&amp;quot; &amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;if&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;equals arg1=&amp;quot;${buildWar}&amp;quot; arg2=&amp;quot;yes&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;then&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;antcall target=&amp;quot;createWar&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;deploy.origin&amp;quot; value=&amp;quot;${deploy.dir}/${deploy.warname}&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/then&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;else&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;deploy.origin&amp;quot; value=&amp;quot;${deploy.webcontent}&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/else&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/if&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/target&amp;gt;
&lt;br&gt;&lt;br&gt;I am testing this logic in Junit, simply by asserting that &amp;quot;deploy.origin&amp;quot; and &amp;quot;executed.properly&amp;quot; are what I expect after overriding createWar:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;@Test
&lt;br&gt;&amp;nbsp; &amp;nbsp;public void determineWarDeployOrigin(){
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Target createWar = new Target();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; createWar.setName(&amp;quot;createWar&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Property createWarTestProperty = new Property();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; createWarTestProperty.setProject(project);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; createWarTestProperty.setName(&amp;quot;executed.properly&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; createWarTestProperty.setValue(&amp;quot;true&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; createWar.addTask(createWarTestProperty);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if(project.getTargets().get(&amp;quot;createWar&amp;quot;) == null){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fail(&amp;quot;createWar target not found in web-deploy.xml&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; project.addOrReplaceTarget(&amp;quot;createWar&amp;quot;, createWar);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; project.setProperty(&amp;quot;buildWar&amp;quot;, &amp;quot;yes&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; assertNull(project.getProperty(&amp;quot;deploy.origin&amp;quot;));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; project.executeTarget(&amp;quot;setLocalDeployProperties&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; project.executeTarget(&amp;quot;determineDeployOrigin&amp;quot;);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; assertEquals(&amp;quot;true&amp;quot;,project.getProperty(&amp;quot;executed.properly&amp;quot;));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; assertEquals(&amp;quot;C:/builds/local/dist/RCMii.war&amp;quot;,project.getProperty(&amp;quot;deploy.origin&amp;quot;))
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&lt;br&gt;The problem is that &amp;quot;executed.properly&amp;quot; is always null, unless I explicitly call execute() on createWarTestProperty task. &amp;nbsp;Is there something that I am doing wrong in creating the createWar target?
&lt;br&gt;Any suggestions are appreciated...</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Overriding-a-Target-programmatically---task-not-being-executed-tp17151073p17151073.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17145916</id>
	<title>AW: ANT: charsets in replace-task</title>
	<published>2008-05-09T04:14:47Z</published>
	<updated>2008-05-09T04:14:47Z</updated>
	<author>
		<name>Hilden</name>
	</author>
	<content type="html">Thank you very much, 
&lt;br&gt;&lt;br&gt;it works! 
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Arash Akhoundi
&lt;br&gt;&lt;br&gt;iks Gesellschaft für
&lt;br&gt;Informations- und
&lt;br&gt;Kommunikationssysteme mbH
&lt;br&gt;Siemensstraße 27
&lt;br&gt;40721 Hilden
&lt;br&gt;Telefon 02103/5872-21
&lt;br&gt;Telefax 02103/5872-58
&lt;br&gt;E-Mail mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17145916&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;a.akhoundi@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-----Ursprüngliche Nachricht-----
&lt;br&gt;Von: Peter Reilly [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17145916&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;peter.kitt.reilly@...&lt;/a&gt;] 
&lt;br&gt;Gesendet: Donnerstag, 8. Mai 2008 16:34
&lt;br&gt;An: Ant Users List
&lt;br&gt;Betreff: Re: ANT: charsets in replace-task
&lt;br&gt;&lt;br&gt;&amp;lt;replace encoding=&amp;quot;utf-8&amp;quot; ....
&lt;br&gt;&lt;br&gt;Peter
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Thu, May 8, 2008 at 7:05 AM, Akhoundi, Arash &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17145916&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;A.Akhoundi@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I did this. But the main problem is not showing the file, because when I open the file through the explorer the content is shown.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The main problem ist, that the special characters are replaced by some other charcters.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; For example:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Original characters: 
&lt;br&gt;&amp;gt; ZàèìòùÀÈÌÒÙáéíóúýÁÉÍÓÚÝâêîôûÂÊÎÔÛãñõÃÑÕäëïöüÿÄËÏÖÜŸçÇåÅðÐøØ\
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; After the replacement: 
&lt;br&gt;&amp;gt; Ã¨Ã¬Ã²Ã¹Ã€ÃˆÃŒÃ'Ã™Ã¡Ã(c)Ã­Ã³ÃºÃ½Ã?Ã‰Ã?Ã&amp;quot;ÃšÃ?Ã¢ÃªÃ(R)Ã´Ã»Ã‚ÃŠÃŽÃ&amp;quot;Ã›Ã£Ã±
&lt;br&gt;&amp;gt; ÃµÃƒÃ'Ã•Ã¤Ã«Ã¯Ã¶Ã¼Ã¿Ã„Ã‹Ã?Ã–ÃœÅ¸Ã§Ã‡Ã¥Ã…Ã°Ã?Ã¸Ã˜
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Arash Akhoundi
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; iks Gesellschaft für
&lt;br&gt;&amp;gt; Informations- und
&lt;br&gt;&amp;gt; Kommunikationssysteme mbH
&lt;br&gt;&amp;gt; Siemensstraße 27
&lt;br&gt;&amp;gt; 40721 Hilden
&lt;br&gt;&amp;gt; Telefon 02103/5872-21
&lt;br&gt;&amp;gt; Telefax 02103/5872-58
&lt;br&gt;&amp;gt; E-Mail mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17145916&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;a.akhoundi@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -----Ursprüngliche Nachricht-----
&lt;br&gt;&amp;gt; Von: Prashant Reddy [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17145916&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;prashant@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Gesendet: Donnerstag, 8. Mai 2008 15:54
&lt;br&gt;&amp;gt; An: Ant Users List
&lt;br&gt;&amp;gt; Betreff: Re: ANT: charsets in replace-task
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; May be you have tell Eclipse to use UTF-8 encoding when showing the file in which ANT has replaced ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Thu, 2008-05-08 at 06:46 -0700, Hilden wrote:
&lt;br&gt;&amp;gt;&amp;gt; Hello everybody,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I have a problem with charsets, by using the &amp;quot;replace-task&amp;quot; of Ant in 
&lt;br&gt;&amp;gt;&amp;gt; the Eclipse IDE.
&lt;br&gt;&amp;gt;&amp;gt; After ant relaces a token &amp;nbsp;(the value of the token comes from a
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;.properties-file&amp;quot;) in an xml-file, where the charset &amp;quot;UTF-8&amp;quot; is used 
&lt;br&gt;&amp;gt;&amp;gt; (&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;), some special characters (such as:
&lt;br&gt;&amp;gt;&amp;gt; ZàèìòùÀÈÌÒÙáéíóúýÁÉÍÓÚÝâêîôûÂÊÎÔÛãñõÃÑÕäëïöüÿÄËÏÖÜŸçÇåÅðÐøØ) &amp;nbsp;are not 
&lt;br&gt;&amp;gt;&amp;gt; represented correctly and Eclipse is not able to show the content of 
&lt;br&gt;&amp;gt;&amp;gt; this file after the replacement.
&lt;br&gt;&amp;gt;&amp;gt; I have already changed the charset of all concerning files to 
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;UTF-8&amp;quot;, but it still doesn't work.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Is there a solution for this problem? maybe a way to tell the 
&lt;br&gt;&amp;gt;&amp;gt; replace-task of ant to use the UTF-8 charset.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thank you,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Best Regards,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Arash
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17145916&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt; For additional 
&lt;br&gt;&amp;gt; commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17145916&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ______________________________________________________________________
&lt;br&gt;&amp;gt; __
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; iks Gesellschaft für Informations- und Kommunikationssysteme mbH 
&lt;br&gt;&amp;gt; Siemensstrasse 27, 40721 Hilden, Amtsgericht Düsseldorf, HRB 45519
&lt;br&gt;&amp;gt; Geschäftsführerin: Dipl.-Inf. Monika Stoll
&lt;br&gt;&amp;gt; Prokuristen: Dipl.-Ing. (FH) Thomas Kondring &amp; Hartwig Tödter 
&lt;br&gt;&amp;gt; ______________________________________________________________________
&lt;br&gt;&amp;gt; __
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17145916&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt; For additional 
&lt;br&gt;&amp;gt; commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17145916&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17145916&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17145916&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/ANT%3A-charsets-in-replace-task-tp17125260p17145916.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17128935</id>
	<title>Re: ANT: charsets in replace-task</title>
	<published>2008-05-08T07:34:01Z</published>
	<updated>2008-05-08T07:34:01Z</updated>
	<author>
		<name>Peter Reilly-2</name>
	</author>
	<content type="html">&amp;lt;replace encoding=&amp;quot;utf-8&amp;quot; ....
&lt;br&gt;&lt;br&gt;Peter
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Thu, May 8, 2008 at 7:05 AM, Akhoundi, Arash &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17128935&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;A.Akhoundi@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I did this. But the main problem is not showing the file, because when I open the file through the explorer the content is shown.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The main problem ist, that the special characters are replaced by some other charcters.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; For example:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Original characters: ZàèìòùÀÈÌÒÙáéíóúýÁÉÍÓÚÝâêîôûÂÊÎÔÛãñõÃÑÕäëïöüÿÄËÏÖÜŸçÇåÅðÐøØ\
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; After the replacement: Ã¨Ã¬Ã²Ã¹Ã€ÃˆÃŒÃ'Ã™Ã¡Ã(c)Ã­Ã³ÃºÃ½Ã?Ã‰Ã?Ã&amp;quot;ÃšÃ?Ã¢ÃªÃ(R)Ã´Ã»Ã‚ÃŠÃŽÃ&amp;quot;Ã›Ã£Ã±ÃµÃƒÃ'Ã•Ã¤Ã«Ã¯Ã¶Ã¼Ã¿Ã„Ã‹Ã?Ã–ÃœÅ¸Ã§Ã‡Ã¥Ã…Ã°Ã?Ã¸Ã˜
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Arash Akhoundi
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; iks Gesellschaft für
&lt;br&gt;&amp;gt; Informations- und
&lt;br&gt;&amp;gt; Kommunikationssysteme mbH
&lt;br&gt;&amp;gt; Siemensstraße 27
&lt;br&gt;&amp;gt; 40721 Hilden
&lt;br&gt;&amp;gt; Telefon 02103/5872-21
&lt;br&gt;&amp;gt; Telefax 02103/5872-58
&lt;br&gt;&amp;gt; E-Mail mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17128935&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;a.akhoundi@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -----Ursprüngliche Nachricht-----
&lt;br&gt;&amp;gt; Von: Prashant Reddy [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17128935&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;prashant@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Gesendet: Donnerstag, 8. Mai 2008 15:54
&lt;br&gt;&amp;gt; An: Ant Users List
&lt;br&gt;&amp;gt; Betreff: Re: ANT: charsets in replace-task
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; May be you have tell Eclipse to use UTF-8 encoding when showing the file in which ANT has replaced ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Thu, 2008-05-08 at 06:46 -0700, Hilden wrote:
&lt;br&gt;&amp;gt;&amp;gt; Hello everybody,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I have a problem with charsets, by using the &amp;quot;replace-task&amp;quot; of Ant in
&lt;br&gt;&amp;gt;&amp;gt; the Eclipse IDE.
&lt;br&gt;&amp;gt;&amp;gt; After ant relaces a token &amp;nbsp;(the value of the token comes from a
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;.properties-file&amp;quot;) in an xml-file, where the charset &amp;quot;UTF-8&amp;quot; is used
&lt;br&gt;&amp;gt;&amp;gt; (&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;), some special characters (such as:
&lt;br&gt;&amp;gt;&amp;gt; ZàèìòùÀÈÌÒÙáéíóúýÁÉÍÓÚÝâêîôûÂÊÎÔÛãñõÃÑÕäëïöüÿÄËÏÖÜŸçÇåÅðÐøØ) &amp;nbsp;are not
&lt;br&gt;&amp;gt;&amp;gt; represented correctly and Eclipse is not able to show the content of
&lt;br&gt;&amp;gt;&amp;gt; this file after the replacement.
&lt;br&gt;&amp;gt;&amp;gt; I have already changed the charset of all concerning files to &amp;quot;UTF-8&amp;quot;,
&lt;br&gt;&amp;gt;&amp;gt; but it still doesn't work.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Is there a solution for this problem? maybe a way to tell the
&lt;br&gt;&amp;gt;&amp;gt; replace-task of ant to use the UTF-8 charset.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thank you,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Best Regards,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Arash
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17128935&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17128935&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ________________________________________________________________________
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; iks Gesellschaft für Informations- und Kommunikationssysteme mbH
&lt;br&gt;&amp;gt; Siemensstrasse 27, 40721 Hilden, Amtsgericht Düsseldorf, HRB 45519
&lt;br&gt;&amp;gt; Geschäftsführerin: Dipl.-Inf. Monika Stoll
&lt;br&gt;&amp;gt; Prokuristen: Dipl.-Ing. (FH) Thomas Kondring &amp; Hartwig Tödter
&lt;br&gt;&amp;gt; ________________________________________________________________________
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17128935&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17128935&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17128935&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17128935&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/ANT%3A-charsets-in-replace-task-tp17125260p17128935.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17128412</id>
	<title>Walter Heestermans/TMME is out of the office.</title>
	<published>2008-05-08T07:09:42Z</published>
	<updated>2008-05-08T07:09:42Z</updated>
	<author>
		<name>Walter.Heestermans</name>
	</author>
	<content type="html">&lt;br&gt;I will be out of the office starting &amp;nbsp;08/05/2008 and will not return until
&lt;br&gt;19/05/2008.
&lt;br&gt;&lt;br&gt;I will respond to your message when I return. For urgent issues, contact
&lt;br&gt;WebSphere Support group.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17128412&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17128412&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Walter-Heestermans-TMME-is-out-of-the-office.-tp17128412p17128412.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17128312</id>
	<title>AW: ANT: charsets in replace-task</title>
	<published>2008-05-08T07:05:53Z</published>
	<updated>2008-05-08T07:05:53Z</updated>
	<author>
		<name>Hilden</name>
	</author>
	<content type="html">Hi, 
&lt;br&gt;&lt;br&gt;I did this. But the main problem is not showing the file, because when I open the file through the explorer the content is shown.
&lt;br&gt;&lt;br&gt;The main problem ist, that the special characters are replaced by some other charcters. &amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;For example: 
&lt;br&gt;&lt;br&gt;Original characters: ZàèìòùÀÈÌÒÙáéíóúýÁÉÍÓÚÝâêîôûÂÊÎÔÛãñõÃÑÕäëïöüÿÄËÏÖÜŸçÇåÅðÐøØ\
&lt;br&gt;&lt;br&gt;After the replacement: Ã¨Ã¬Ã²Ã¹Ã€ÃˆÃŒÃ’Ã™Ã¡Ã©Ã­Ã³ÃºÃ½Ã?Ã‰Ã?Ã“ÃšÃ?Ã¢ÃªÃ®Ã´Ã»Ã‚ÃŠÃŽÃ”Ã›Ã£Ã±ÃµÃƒÃ‘Ã•Ã¤Ã«Ã¯Ã¶Ã¼Ã¿Ã„Ã‹Ã?Ã–ÃœÅ¸Ã§Ã‡Ã¥Ã…Ã°Ã?Ã¸Ã˜
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Arash Akhoundi
&lt;br&gt;&lt;br&gt;iks Gesellschaft für
&lt;br&gt;Informations- und
&lt;br&gt;Kommunikationssysteme mbH
&lt;br&gt;Siemensstraße 27
&lt;br&gt;40721 Hilden
&lt;br&gt;Telefon 02103/5872-21
&lt;br&gt;Telefax 02103/5872-58
&lt;br&gt;E-Mail mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17128312&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;a.akhoundi@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-----Ursprüngliche Nachricht-----
&lt;br&gt;Von: Prashant Reddy [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17128312&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;prashant@...&lt;/a&gt;] 
&lt;br&gt;Gesendet: Donnerstag, 8. Mai 2008 15:54
&lt;br&gt;An: Ant Users List
&lt;br&gt;Betreff: Re: ANT: charsets in replace-task
&lt;br&gt;&lt;br&gt;May be you have tell Eclipse to use UTF-8 encoding when showing the file in which ANT has replaced ?
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Thu, 2008-05-08 at 06:46 -0700, Hilden wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello everybody,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I have a problem with charsets, by using the &amp;quot;replace-task&amp;quot; of Ant in 
&lt;br&gt;&amp;gt; the Eclipse IDE.
&lt;br&gt;&amp;gt; After ant relaces a token &amp;nbsp;(the value of the token comes from a
&lt;br&gt;&amp;gt; &amp;quot;.properties-file&amp;quot;) in an xml-file, where the charset &amp;quot;UTF-8&amp;quot; is used 
&lt;br&gt;&amp;gt; (&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;), some special characters (such as:
&lt;br&gt;&amp;gt; ZàèìòùÀÈÌÒÙáéíóúýÁÉÍÓÚÝâêîôûÂÊÎÔÛãñõÃÑÕäëïöüÿÄËÏÖÜŸçÇåÅðÐøØ) &amp;nbsp;are not 
&lt;br&gt;&amp;gt; represented correctly and Eclipse is not able to show the content of 
&lt;br&gt;&amp;gt; this file after the replacement.
&lt;br&gt;&amp;gt; I have already changed the charset of all concerning files to &amp;quot;UTF-8&amp;quot;, 
&lt;br&gt;&amp;gt; but it still doesn't work.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Is there a solution for this problem? maybe a way to tell the 
&lt;br&gt;&amp;gt; replace-task of ant to use the UTF-8 charset.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thank you,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Best Regards,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Arash
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17128312&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17128312&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;________________________________________________________________________ 
&lt;br&gt;&amp;nbsp;
&lt;br&gt;iks Gesellschaft für Informations- und Kommunikationssysteme mbH
&lt;br&gt;Siemensstrasse 27, 40721 Hilden, Amtsgericht Düsseldorf, HRB 45519
&lt;br&gt;Geschäftsführerin: Dipl.-Inf. Monika Stoll
&lt;br&gt;Prokuristen: Dipl.-Ing. (FH) Thomas Kondring &amp; Hartwig Tödter
&lt;br&gt;________________________________________________________________________ 
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17128312&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17128312&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/ANT%3A-charsets-in-replace-task-tp17125260p17128312.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17128031</id>
	<title>Re: ANT: charsets in replace-task</title>
	<published>2008-05-08T06:53:52Z</published>
	<updated>2008-05-08T06:53:52Z</updated>
	<author>
		<name>Prashant Reddy-2</name>
	</author>
	<content type="html">May be you have tell Eclipse to use UTF-8 encoding when showing the file
&lt;br&gt;in which ANT has replaced ?
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Thu, 2008-05-08 at 06:46 -0700, Hilden wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello everybody, 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I have a problem with charsets, by using the &amp;quot;replace-task&amp;quot; of Ant in the
&lt;br&gt;&amp;gt; Eclipse IDE.
&lt;br&gt;&amp;gt; After ant relaces a token &amp;nbsp;(the value of the token comes from a
&lt;br&gt;&amp;gt; &amp;quot;.properties-file&amp;quot;) in an xml-file, where the charset &amp;quot;UTF-8&amp;quot; is used (&amp;lt;?xml
&lt;br&gt;&amp;gt; version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;), some special characters (such as:
&lt;br&gt;&amp;gt; ZàèìòùÀÈÌÒÙáéíóúýÁÉÍÓÚÝâêîôûÂÊÎÔÛãñõÃÑÕäëïöüÿÄËÏÖÜŸçÇåÅðÐøØ) &amp;nbsp;are not
&lt;br&gt;&amp;gt; represented correctly and Eclipse is not able to show the content of this
&lt;br&gt;&amp;gt; file after the replacement.
&lt;br&gt;&amp;gt; I have already changed the charset of all concerning files to &amp;quot;UTF-8&amp;quot;, but
&lt;br&gt;&amp;gt; it still doesn't work.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Is there a solution for this problem? maybe a way to tell the replace-task
&lt;br&gt;&amp;gt; of ant to use the UTF-8 charset. &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thank you,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Best Regards,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Arash
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17128031&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17128031&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/ANT%3A-charsets-in-replace-task-tp17125260p17128031.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17125260</id>
	<title>ANT: charsets in replace-task</title>
	<published>2008-05-08T06:46:08Z</published>
	<updated>2008-05-08T06:46:08Z</updated>
	<author>
		<name>Hilden</name>
	</author>
	<content type="html">Hello everybody, 
&lt;br&gt;&lt;br&gt;I have a problem with charsets, by using the &amp;quot;replace-task&amp;quot; of Ant in the Eclipse IDE.
&lt;br&gt;After ant relaces a token &amp;nbsp;(the value of the token comes from a &amp;quot;.properties-file&amp;quot;) in an xml-file, where the charset &amp;quot;UTF-8&amp;quot; is used (&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;), some special characters (such as: ZàèìòùÀÈÌÒÙáéíóúýÁÉÍÓÚÝâêîôûÂÊÎÔÛãñõÃÑÕäëïöüÿÄËÏÖÜŸçÇåÅðÐøØ) &amp;nbsp;are not represented correctly and Eclipse is not able to show the content of this file after the replacement.
&lt;br&gt;I have already changed the charset of all concerning files to &amp;quot;UTF-8&amp;quot;, but it still doesn't work.
&lt;br&gt;&lt;br&gt;Is there a solution for this problem? maybe a way to tell the replace-task of ant to use the UTF-8 charset. &amp;nbsp;
&lt;br&gt;&lt;br&gt;Thank you,
&lt;br&gt;&lt;br&gt;Best Regards,
&lt;br&gt;&lt;br&gt;Arash
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/ANT%3A-charsets-in-replace-task-tp17125260p17125260.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17125472</id>
	<title>Isssues Running .sql  from SQL Task of ANT</title>
	<published>2008-05-07T23:52:10Z</published>
	<updated>2008-05-07T23:52:10Z</updated>
	<author>
		<name>Kothari, Shivani</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;I am executing .sql which has procedure with ${@colindex.0} . This .sql
&lt;br&gt;is executed from SQL Task through ANT scripts. &amp;nbsp;This .sql file having
&lt;br&gt;procedure is runnin properly form sql server studio.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Statements in SQL procedure :
&lt;br&gt;SET @PLOT_LINK =
&lt;br&gt;'openForm(&amp;quot;ESD_ADM032_FRM_AUTO_ROUTING&amp;look_up=true&amp;quot;,${@colindex.0},810,
&lt;br&gt;375, &amp;quot;auto&amp;quot;, false );'
&lt;br&gt;REPLACE (@PLOT_LINK, '${@colindex.0}', CAST(a.row_id AS nvarchar)) AS
&lt;br&gt;plot_link
&lt;br&gt;&lt;br&gt;Error while executing through ANT
&lt;br&gt;[sql] com.inet.tds.ap: Unknown escape sequence '{ colindex.0}'
&lt;br&gt;&lt;br&gt;Let me know what should be done?
&lt;br&gt;Thanks 
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17125472&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17125472&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Isssues-Running-.sql--from-SQL-Task-of-ANT-tp17125472p17125472.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17115381</id>
	<title>Re: classloader problem?</title>
	<published>2008-05-07T14:41:16Z</published>
	<updated>2008-05-07T14:41:16Z</updated>
	<author>
		<name>Christofer Jennings-2</name>
	</author>
	<content type="html">Ah ha! That was it! ... I was ...
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;getProject().createClassLoader(classpath);
&lt;br&gt;&lt;br&gt;... when I needed to ...
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;getProject().createClassLoader(MyAnnotation.class.getClassLoader();,
&lt;br&gt;classpath);
&lt;br&gt;&lt;br&gt;THANKS Peter!
&lt;br&gt;&lt;br&gt;On Wed, May 7, 2008 at 8:49 AM, Peter Reilly &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17115381&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;peter.kitt.reilly@...&lt;/a&gt;&amp;gt;
&lt;br&gt;wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Also remember to use the classloader that loaded the
&lt;br&gt;&amp;gt; custom task as the parent for the new classloader
&lt;br&gt;&amp;gt; created in the task.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Peter
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Wed, May 7, 2008 at 3:59 PM, Steve Loughran &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17115381&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stevel@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Christofer Jennings wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I think I have a classloader problem.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I've made a custom task that looks through classes for a method
&lt;br&gt;&amp;gt; &amp;gt; annotation,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; then makes a report. I've got junit tests that work in my IDE showing
&lt;br&gt;&amp;gt; that
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; the annotations can be found. But when I run the task the annotations
&lt;br&gt;&amp;gt; are
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; not recognized. .... That is, the annotation is there. I can read its
&lt;br&gt;&amp;gt; &amp;gt; type.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; But if I ask the method for an annotation matching the class it
&lt;br&gt;&amp;gt; doesn't
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; match. (Yes, the class matches the reported type.: e.g.,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; com.foo.MyAnnotation.class)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; So I think I have a classloader problem. My task accepts a path to
&lt;br&gt;&amp;gt; find
&lt;br&gt;&amp;gt; &amp;gt; the
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; classes with the annotations. It creates a classloader from the ant
&lt;br&gt;&amp;gt; &amp;gt; project,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; passing in the given path. My theory is that the classes loaded by my
&lt;br&gt;&amp;gt; task
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; are on a different classloader than the MyAnnotation.class and that is
&lt;br&gt;&amp;gt; why
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; they don't match. ... Sound right? .... If so how do I get them on the
&lt;br&gt;&amp;gt; &amp;gt; same
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; classloader?
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;I think that hypothesis sounds right, but don't know where to deal with
&lt;br&gt;&amp;gt; it.
&lt;br&gt;&amp;gt; &amp;gt; Can you load the tags you want to look for in the classloader that you
&lt;br&gt;&amp;gt; are
&lt;br&gt;&amp;gt; &amp;gt; loading the classes in?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;---------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17115381&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17115381&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17115381&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17115381&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/classloader-problem--tp17048994p17115381.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17112495</id>
	<title>Tony Mao is out of the office.</title>
	<published>2008-05-07T12:14:20Z</published>
	<updated>2008-05-07T12:14:20Z</updated>
	<author>
		<name>tmao</name>
	</author>
	<content type="html">&lt;br&gt;I will be out of the office starting &amp;nbsp;05/07/2008 and will not return until
&lt;br&gt;05/12/2008.
&lt;br&gt;&lt;br&gt;I will respond to your message when I return.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17112495&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17112495&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Tony-Mao-is-out-of-the-office.-tp17112495p17112495.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17108271</id>
	<title>Re: classloader problem?</title>
	<published>2008-05-07T08:49:33Z</published>
	<updated>2008-05-07T08:49:33Z</updated>
	<author>
		<name>Peter Reilly-2</name>
	</author>
	<content type="html">Also remember to use the classloader that loaded the
&lt;br&gt;custom task as the parent for the new classloader
&lt;br&gt;created in the task.
&lt;br&gt;&lt;br&gt;Peter
&lt;br&gt;&lt;br&gt;On Wed, May 7, 2008 at 3:59 PM, Steve Loughran &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17108271&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stevel@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Christofer Jennings wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I think I have a classloader problem.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I've made a custom task that looks through classes for a method
&lt;br&gt;&amp;gt; annotation,
&lt;br&gt;&amp;gt; &amp;gt; then makes a report. I've got junit tests that work in my IDE showing that
&lt;br&gt;&amp;gt; &amp;gt; the annotations can be found. But when I run the task the annotations are
&lt;br&gt;&amp;gt; &amp;gt; not recognized. .... That is, the annotation is there. I can read its
&lt;br&gt;&amp;gt; type.
&lt;br&gt;&amp;gt; &amp;gt; But if I ask the method for an annotation matching the class it doesn't
&lt;br&gt;&amp;gt; &amp;gt; match. (Yes, the class matches the reported type.: e.g.,
&lt;br&gt;&amp;gt; &amp;gt; com.foo.MyAnnotation.class)
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; So I think I have a classloader problem. My task accepts a path to find
&lt;br&gt;&amp;gt; the
&lt;br&gt;&amp;gt; &amp;gt; classes with the annotations. It creates a classloader from the ant
&lt;br&gt;&amp;gt; project,
&lt;br&gt;&amp;gt; &amp;gt; passing in the given path. My theory is that the classes loaded by my task
&lt;br&gt;&amp;gt; &amp;gt; are on a different classloader than the MyAnnotation.class and that is why
&lt;br&gt;&amp;gt; &amp;gt; they don't match. ... Sound right? .... If so how do I get them on the
&lt;br&gt;&amp;gt; same
&lt;br&gt;&amp;gt; &amp;gt; classloader?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;I think that hypothesis sounds right, but don't know where to deal with it.
&lt;br&gt;&amp;gt; Can you load the tags you want to look for in the classloader that you are
&lt;br&gt;&amp;gt; loading the classes in?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;---------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;nbsp;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17108271&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;nbsp;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17108271&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17108271&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17108271&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/classloader-problem--tp17048994p17108271.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17107226</id>
	<title>Re: classloader problem?</title>
	<published>2008-05-07T07:59:51Z</published>
	<updated>2008-05-07T07:59:51Z</updated>
	<author>
		<name>Steve Loughran</name>
	</author>
	<content type="html">Christofer Jennings wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I think I have a classloader problem.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I've made a custom task that looks through classes for a method annotation,
&lt;br&gt;&amp;gt; then makes a report. I've got junit tests that work in my IDE showing that
&lt;br&gt;&amp;gt; the annotations can be found. But when I run the task the annotations are
&lt;br&gt;&amp;gt; not recognized. .... That is, the annotation is there. I can read its type.
&lt;br&gt;&amp;gt; But if I ask the method for an annotation matching the class it doesn't
&lt;br&gt;&amp;gt; match. (Yes, the class matches the reported type.: e.g.,
&lt;br&gt;&amp;gt; com.foo.MyAnnotation.class)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; So I think I have a classloader problem. My task accepts a path to find the
&lt;br&gt;&amp;gt; classes with the annotations. It creates a classloader from the ant project,
&lt;br&gt;&amp;gt; passing in the given path. My theory is that the classes loaded by my task
&lt;br&gt;&amp;gt; are on a different classloader than the MyAnnotation.class and that is why
&lt;br&gt;&amp;gt; they don't match. ... Sound right? .... If so how do I get them on the same
&lt;br&gt;&amp;gt; classloader?
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;I think that hypothesis sounds right, but don't know where to deal with 
&lt;br&gt;it. Can you load the tags you want to look for in the classloader that 
&lt;br&gt;you are loading the classes in?
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17107226&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17107226&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/classloader-problem--tp17048994p17107226.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17104829</id>
	<title>Re: How to assign a result of sqltask to variable</title>
	<published>2008-05-07T06:24:29Z</published>
	<updated>2008-05-07T06:24:29Z</updated>
	<author>
		<name>Chuck Holzwarth</name>
	</author>
	<content type="html">I don't have any experience with the sql task, but I have faced this type of thing in the past and solved it by using the echo task to create a file with something like &amp;quot;&amp;lt;property_name&amp;gt;=&amp;quot; and then use another task to append to the file by setting the command output to use the same file with append=true. This generates a file with contents similar to &amp;quot;&amp;lt;property_name&amp;gt;=value&amp;quot;. I then use loadproperties to load the resulting file.
&lt;br&gt;&lt;br&gt;&amp;nbsp;Thank you,
&lt;br&gt;Chuck Holzwarth
&lt;br&gt;(804) 403-3478 (home)
&lt;br&gt;(540) 335-3171 (cell)
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----- Original Message ----
&lt;br&gt;From: Jeremy Weber &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17104829&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeremy.weber@...&lt;/a&gt;&amp;gt;
&lt;br&gt;To: Ant Users List &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17104829&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Sent: Tuesday, May 6, 2008 5:51:23 PM
&lt;br&gt;Subject: Re: How to assign a result of sqltask to variable
&lt;br&gt;&lt;br&gt;You cant directly, but you might be able to use the output attribute to 
&lt;br&gt;store the user_id in a file and then read the contents of the file into 
&lt;br&gt;a property with LoadFile. &amp;nbsp;Its worth a shot, but I wonder if you will 
&lt;br&gt;get more information in the file than just user_id.
&lt;br&gt;&lt;br&gt;I am Who i am wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi All
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; How to assign a result of sqltask to variable
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; E.g.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Lets say i have this in my build.xml
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;sql
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; driver=&amp;quot;oracle.jdbc.driver.OracleDrive&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; url=&amp;quot;jdbc:database-url&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; userid=&amp;quot;sa&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; password=&amp;quot;pass&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt;
&lt;br&gt;&amp;gt; SELECT user_id FROM user where user_name=${user.name};
&lt;br&gt;&amp;gt; &amp;lt;/sql&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; in this how do i assign user_id now to any variable,?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Please help
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17104829&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17104829&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ____________________________________________________________________________________
&lt;br&gt;Be a better friend, newshound, and 
&lt;br&gt;know-it-all with Yahoo! Mobile. &amp;nbsp;Try it now. &amp;nbsp;&lt;a href=&quot;http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-assign-a-result-of-sqltask-to-variable-tp17092979p17104829.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17093189</id>
	<title>Re: How to assign a result of sqltask to variable</title>
	<published>2008-05-06T14:51:23Z</published>
	<updated>2008-05-06T14:51:23Z</updated>
	<author>
		<name>Jeremy Weber-2</name>
	</author>
	<content type="html">You cant directly, but you might be able to use the output attribute to 
&lt;br&gt;store the user_id in a file and then read the contents of the file into 
&lt;br&gt;a property with LoadFile. &amp;nbsp;Its worth a shot, but I wonder if you will 
&lt;br&gt;get more information in the file than just user_id.
&lt;br&gt;&lt;br&gt;I am Who i am wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi All
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; How to assign a result of sqltask to variable
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; E.g.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Lets say i have this in my build.xml
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;sql
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; driver=&amp;quot;oracle.jdbc.driver.OracleDrive&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; url=&amp;quot;jdbc:database-url&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; userid=&amp;quot;sa&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; password=&amp;quot;pass&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt;
&lt;br&gt;&amp;gt; SELECT user_id FROM user where user_name=${user.name};
&lt;br&gt;&amp;gt; &amp;lt;/sql&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; in this how do i assign user_id now to any variable,?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Please help
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17093189&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17093189&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-assign-a-result-of-sqltask-to-variable-tp17092979p17093189.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17092979</id>
	<title>How to assign a result of sqltask to variable</title>
	<published>2008-05-06T14:41:56Z</published>
	<updated>2008-05-06T14:41:56Z</updated>
	<author>
		<name>I am Who i am</name>
	</author>
	<content type="html">Hi All
&lt;br&gt;&lt;br&gt;How to assign a result of sqltask to variable
&lt;br&gt;&lt;br&gt;E.g.
&lt;br&gt;&lt;br&gt;Lets say i have this in my build.xml
&lt;br&gt;&lt;br&gt;&amp;lt;sql
&lt;br&gt;&amp;nbsp; &amp;nbsp; driver=&amp;quot;oracle.jdbc.driver.OracleDrive&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; url=&amp;quot;jdbc:database-url&amp;quot;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; userid=&amp;quot;sa&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; password=&amp;quot;pass&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;gt;
&lt;br&gt;SELECT user_id FROM user where user_name=${user.name};
&lt;br&gt;&amp;lt;/sql&amp;gt;
&lt;br&gt;&lt;br&gt;in this how do i assign user_id now to any variable,?
&lt;br&gt;&lt;br&gt;Please help
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-assign-a-result-of-sqltask-to-variable-tp17092979p17092979.html" />
</entry>

</feed>
