<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Apache Ant Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/category/build-management-tools/apache-ant-build-management-tools/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/category/build-management-tools/apache-ant-build-management-tools/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 27 Feb 2021 09:54:04 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>Ant cpptask with ivy</title>
		<link>https://www.scmgalaxy.com/tutorials/ant-cpptask-with-ivy/</link>
					<comments>https://www.scmgalaxy.com/tutorials/ant-cpptask-with-ivy/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 06 Dec 2017 11:41:07 +0000</pubDate>
				<category><![CDATA[Apache Ant]]></category>
		<category><![CDATA[ANT]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=1924</guid>

					<description><![CDATA[<p>rajeshkumar created the topic: ant cpptask with ivy Questions: A company I am working for, has some c binaries build [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/ant-cpptask-with-ivy/">Ant cpptask with ivy</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>rajeshkumar created the topic: ant cpptask with ivy</strong><br />
Questions:<br />
A company I am working for, has some c binaries build with ant using cpptask. They use ivy to retrieve shared c libraries every time we start a build which wastes a significant amount of time comparing the revisions and downloading, when then only need to be download if the header files have changed. I have added a target which sets a var, which causes the build to skip over the ivy steps but I&#8217;d like a better solution. I see that cpptask creates a file history.xml and only rebuilds to binary if any of the sources have change. I&#8217;d like to know if there is way to independently test if the binary needs to build, and it does, I&#8217;d like it fire off the ivy targets. I&#8217;d also like for a variable to be set if the binary was rebuilt so that I can conditionally start an rpm generation task</p>
<p>Answer:
<project name="conditional_compile" default="build">
<p>    <condition property="file.modified"><br />
        <isfileselected file="test.txt"><br />
            <modified/><br />
        </isfileselected><br />
    </condition></p>
<p>    <target name="build" if="file.modified"><br />
        <echo message="This is a compile step that depends on the modification of a file"/><br />
    </target></p>
</project>
<p>Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/ant-cpptask-with-ivy/">Ant cpptask with ivy</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/ant-cpptask-with-ivy/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to put new line in apache ant message</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-put-new-line-in-apache-ant-message/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-put-new-line-in-apache-ant-message/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 06 Dec 2017 11:35:43 +0000</pubDate>
				<category><![CDATA[Apache Ant]]></category>
		<category><![CDATA[Apache]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=1919</guid>

					<description><![CDATA[<p>rajeshkumar created the topic: How to put new line in apache ant message How to put new line in Apache [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-put-new-line-in-apache-ant-message/">How to put new line in apache ant message</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>rajeshkumar created the topic: How to put new line in apache ant message</strong><br />
How to put new line in Apache Ant echo task and mail task:</p>
<p>Answer:<br />
line.separator is Java System Properties which can be used for this purpose.<br />
Found the solution (tried with Ant 1.7.0):</p>
<p>1. You might wrap the message-texts within the XML file.<br />
2. If you put ${line.separator} in front of the line every space before that line separator will be trimmed away.</p>
<p>Example Program:
<project default="play" name="sandbox">
<target name="-private"><br />
<echo message="Private message... never reached."/><br />
</target></p>
<p><target name="play"><br />
<echo message="Lorem Ipsum Dolor"/><br />
<echo message="

"/><br />
<echo message="Lorem${line.separator} Ipsum${line.separator} Dolor"/><br />
<echo message="
"/><br />
<echo message="Lorem ${line.separator}Ipsum ${line.separator}Dolor"/><br />
<echo message="
"/><br />
<fail message="Failure Title ${line.separator} Ipsum ${line.separator} Dolor"/><br />
</target>
</project>
<p>Note:<br />
If new properties get added (it happens), expect them to appear under the &#8220;ant.&#8221; and &#8220;org.apache.tools.ant&#8221; prefixes, unless the developers have a very good reason to use another prefix. Accordingly, please avoid using properties that begin with these prefixes. This protects you from future Ant releases breaking your build file.<br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-put-new-line-in-apache-ant-message/">How to put new line in apache ant message</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-put-new-line-in-apache-ant-message/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Ant+Unable to create directory as a file already</title>
		<link>https://www.scmgalaxy.com/tutorials/antunable-to-create-directory-as-a-file-already/</link>
					<comments>https://www.scmgalaxy.com/tutorials/antunable-to-create-directory-as-a-file-already/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 06 Dec 2017 11:32:07 +0000</pubDate>
				<category><![CDATA[Apache Ant]]></category>
		<category><![CDATA[ANT]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=1917</guid>

					<description><![CDATA[<p>rajeshkumar created the topic: Ant+Unable to create directory as a file already Hi, I have one file called djir.ear and [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/antunable-to-create-directory-as-a-file-already/">Ant+Unable to create directory as a file already</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>rajeshkumar created the topic: Ant+Unable to create directory as a file already</strong><br />
Hi,</p>
<p>I have one file called djir.ear and I am trying to create a folder with the same name &#8220;jir.ear&#8221; same location using ant script.<br />
but i get error message saying that<br />
Unable to create directory as a file alr<br />
eady exists with that name</p>
<p>Can you suggest me any solution for this? as i build is failing and mkdir do not support failonerror propertry <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f641.png" alt="🙁" class="wp-smiley" style="height: 1em; max-height: 1em;" /><br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/antunable-to-create-directory-as-a-file-already/">Ant+Unable to create directory as a file already</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/antunable-to-create-directory-as-a-file-already/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>The type doesn&#8217;t support the nested &#8220;resources&#8221;</title>
		<link>https://www.scmgalaxy.com/tutorials/the-type-doesnt-support-the-nested-resources/</link>
					<comments>https://www.scmgalaxy.com/tutorials/the-type-doesnt-support-the-nested-resources/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 06 Dec 2017 11:29:38 +0000</pubDate>
				<category><![CDATA[Apache Ant]]></category>
		<category><![CDATA[nested]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=1915</guid>

					<description><![CDATA[<p>scmuser created the topic: The type doesn&#8217;t support the nested &#8220;resources&#8221; Hi, I getting below error when i execute following [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/the-type-doesnt-support-the-nested-resources/">The type doesn&#8217;t support the nested &#8220;resources&#8221;</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>scmuser created the topic: The type doesn&#8217;t support the nested &#8220;resources&#8221;</strong><br />
Hi,<br />
I getting below error when i execute following command</p>
<p>Error: The <copy> type doesn&#8217;t support the nested &#8220;resources&#8221; element.<br />
<code><copy todir="dest" flatten="true"><br />
    <resources><br />
      <file file="src_dir/file1.txt"/><br />
      <url url="http://ant.apache.org/index.html"/><br />
    </resources><br />
  </copy></code></p>
<p>any help???</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/the-type-doesnt-support-the-nested-resources/">The type doesn&#8217;t support the nested &#8220;resources&#8221;</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/the-type-doesnt-support-the-nested-resources/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Ant Scripting Issue</title>
		<link>https://www.scmgalaxy.com/tutorials/ant-scripting-issue/</link>
					<comments>https://www.scmgalaxy.com/tutorials/ant-scripting-issue/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 06 Dec 2017 10:55:59 +0000</pubDate>
				<category><![CDATA[Apache Ant]]></category>
		<category><![CDATA[ANT]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=1910</guid>

					<description><![CDATA[<p>ant-qa created the topic: Ant Scripting Issue 1) I have many ant build files ( .xml files / test scripts) [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/ant-scripting-issue/">Ant Scripting Issue</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>ant-qa created the topic: Ant Scripting Issue</strong><br />
1) I have many ant build files ( .xml files / test scripts) in folder : bin/execute</p>
<p>2) I have another testsuit.xml file (ant build file) that works as a test suit. All the test cases in folder : bin/execute are executed in the order they appear in testsuit.xml</p>
<p>3) I want to write code maybe another ant test (.xml file) to make sure that all the test cases are added (executed) in the test suit.</p>
<p>4) Test cases in the testsuit.xml can be identified by : <runant antfile="testcasename.xml" /></p>
<p>Any thoughts will be extremely appreciated</p>
<p>Thanks</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/ant-scripting-issue/">Ant Scripting Issue</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/ant-scripting-issue/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Condition with Task in Ant</title>
		<link>https://www.scmgalaxy.com/tutorials/condition-with-task-in-ant/</link>
					<comments>https://www.scmgalaxy.com/tutorials/condition-with-task-in-ant/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 06 Dec 2017 10:54:15 +0000</pubDate>
				<category><![CDATA[Apache Ant]]></category>
		<category><![CDATA[ANT]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=1908</guid>

					<description><![CDATA[<p>scmuser created the topic: Condition with Task in Ant Hi, How can i use conditions in Ant Task execution? Any [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/condition-with-task-in-ant/">Condition with Task in Ant</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>scmuser created the topic: Condition with Task in Ant</strong><br />
Hi,</p>
<p>How can i use conditions in Ant Task execution?</p>
<p>Any idea?</p>
<p><strong>tpatil replied the topic: Re: Condition with Task in Ant</strong><br />
[i]<target name="check-props"></p>
<p>	<!-- Ensure that entry doesn't exists in list --><br />
        <condition property="entry-exists"><br />
             <contains string="${tag.list}" substring="${build.label}" /><br />
        </condition><br />
        <fail if="entry-exists" message="Entry already exists.Please specify another." /></p>
<p>	<!-- Ensure dir is configured correctly and exists--><br />
        <condition property="dir-configured"><br />
            <and><br />
                <isset property="dir" /><br />
                <available file="${dir}" type="dir" /><br />
            </and><br />
        </condition><br />
        <fail unless="dir-configured" message="dir not configured" /></p>
<p></target></p>
<p><!-- Execute the ant based on condition is set or not --><br />
<target name="-set-props-if-set" if="property1">
	    <property name="property2" value="string1"/>
	    <property name="property3" value="string2"/>
</target></p>
<p><target name="-set-props-if-not-set" unless="property1">
	    <property name="property2" value="string2"/>
	    <property name="property3" value="string1"/>
</target>[/i]</p>
<p><strong>rajeshkumar replied the topic: Re: Condition with Task in Ant</strong><br />
Hi,</p>
<p>I guess questions was based on applying condition for Aant TASK instead of Ant Target. Following ways i mean using <condition> you can set the conditional properties value but set condition with TASK.</p>
<p>There is one external lib ant-contrib which can be used to put conditional Task such you can find more details in links below&#8230;..<br />
<a href="http://ant-contrib.sourceforge.net/tasks/tasks/if.html">ant-contrib.sourceforge.net/tasks/tasks/if.html</a><br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/condition-with-task-in-ant/">Condition with Task in Ant</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/condition-with-task-in-ant/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Replace xml values using ant</title>
		<link>https://www.scmgalaxy.com/tutorials/replace-xml-values-using-ant/</link>
					<comments>https://www.scmgalaxy.com/tutorials/replace-xml-values-using-ant/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 06 Dec 2017 10:49:27 +0000</pubDate>
				<category><![CDATA[Apache Ant]]></category>
		<category><![CDATA[Replace]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=1906</guid>

					<description><![CDATA[<p>tpatil created the topic: Replace xml values using ant I want to replace xml values using ant. Any idea? e.g [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/replace-xml-values-using-ant/">Replace xml values using ant</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>tpatil created the topic: Replace xml values using ant</strong><br />
I want to replace xml values using ant. Any idea?</p>
<p>e.g<br />
<code><property name="hibernateProperties">
		  	<props>
<prop key="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</prop>
</props>
</property></code></p>
<p>I want to replace the value of hibernate.dialect property using ant.</p>
<p><strong>rajeshkumar replied the topic: Re: Replace xml values using ant</strong><br />
You can opt for any one of these based on senario&#8230;</p>
<p>1. if you can your Value as holding place such as&#8230;
<prop key="hibernate.dialect">@org.hibernate.dialect.Oracle10gDialect@</prop>
<p>Then u can use Filterset task in Ant&#8230;for more info&#8230;</p>
<p><a href="http://ant.apache.org/manual/Types/filterset.html">ant.apache.org/manual/Types/filterset.html</a> </p>
<p>2. If you have same requirement as you mentioned abobe&#8230; then probably you can try ReplaceRegExp ant task.</p>
<p><a href="http://ant.apache.org/manual/Tasks/replaceregexp.html">ant.apache.org/manual/Tasks/replaceregexp.html</a> </p>
<p>Please let me know if this solve your problem. <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /><br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/replace-xml-values-using-ant/">Replace xml values using ant</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/replace-xml-values-using-ant/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to delete specific classes from jar file?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-delete-specific-classes-from-jar-file/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-delete-specific-classes-from-jar-file/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 06 Dec 2017 10:40:43 +0000</pubDate>
				<category><![CDATA[Apache Ant]]></category>
		<category><![CDATA[classes]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=1904</guid>

					<description><![CDATA[<p>tpatil created the topic: How to delete specific classes from jar file? I wanted to delete specific classes from jar [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-delete-specific-classes-from-jar-file/">How to delete specific classes from jar file?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>tpatil created the topic: How to delete specific classes from jar file?</strong><br />
I wanted to delete specific classes from jar file without extracting the jar file.</p>
<p>Any Ideas?</p>
<p>-Tushar</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-delete-specific-classes-from-jar-file/">How to delete specific classes from jar file?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-delete-specific-classes-from-jar-file/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>SQL files execute : Incorrect syntax near &#8216;go&#8217;.</title>
		<link>https://www.scmgalaxy.com/tutorials/sql-files-execute-incorrect-syntax-near-go/</link>
					<comments>https://www.scmgalaxy.com/tutorials/sql-files-execute-incorrect-syntax-near-go/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 06 Dec 2017 10:36:01 +0000</pubDate>
				<category><![CDATA[Apache Ant]]></category>
		<category><![CDATA[sql]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=1902</guid>

					<description><![CDATA[<p>saiki created the topic: SQL files execute : Incorrect syntax near &#8216;go&#8217;. Getting below issue when trying to run the [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/sql-files-execute-incorrect-syntax-near-go/">SQL files execute : Incorrect syntax near &#8216;go&#8217;.</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>saiki created the topic: SQL files execute : Incorrect syntax near &#8216;go&#8217;.</strong><br />
Getting below issue when trying to run the ant script.</p>
<p>I am trying to run few sql files from the folder through ant script in which I configured the &#8220;jtds-1.2.5.jar&#8221;.<br />
Unable to run the GO statment in the sql file. But able to execute same file it through sql studio with out any error.</p>
<p>************************************************** **<br />
<target name="runscript"><br />
<sql driver="net.sourceforge.jtds.jdbc.Driver"
url="jdbc:jtds:sqlserver://${xxxxx}:${1433}/;"
userid="${aaaaaaaa}" password="${bbbbbb}"
classpathref="jtds-1.2.5.jar">
<path>
<fileset file="${basedir}\source\Mydata.sql"/>
</path>
</sql><br />
</target></p>
<p>************************************************** **<br />
ERROR:<br />
************************************************** **<br />
java.sql.SQLException: Incorrect syntax near &#8216;go&#8217;.<br />
at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnos tic(SQLDiagnostic.java:368)<br />
at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(Td sCore.java:2820)<br />
at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCor e.java:2258)<br />
at net.sourceforge.jtds.jdbc.TdsCore.getMoreResults(T dsCore.java:632)<br />
at net.sourceforge.jtds.jdbc.JtdsStatement.processRes ults(JtdsStatement.java:584)<br />
at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQL (JtdsStatement.java:546)<br />
at net.sourceforge.jtds.jdbc.JtdsStatement.executeImp l(JtdsStatement.java:723)<br />
at net.sourceforge.jtds.jdbc.JtdsStatement.execute(Jt dsStatement.java:1160)<br />
at org.apache.tools.ant.taskdefs.SQLExec.execSQL(SQLE xec.java:775)<br />
at org.apache.tools.ant.taskdefs.SQLExec.runStatement s(SQLExec.java:751)<br />
at org.apache.tools.ant.taskdefs.SQLExec$Transaction. runTransaction(SQLExec.java:1055)<br />
at org.apache.tools.ant.taskdefs.SQLExec$Transaction. access$000(SQLExec.java:985)<br />
at org.apache.tools.ant.taskdefs.SQLExec.execute(SQLE xec.java:653)</p>
<p><strong>rajeshkumar replied the topic: Re: SQL files execute : Incorrect syntax near &#8216;go&#8217;.</strong><br />
ave you tried executing sql statement on command line. may be sql studio has some setting which is helping to get it execute but not the ant script.</p>
<p>please refer these url as well&#8230;<br />
<a href="http://forums.oracle.com/forums/thread.jspa?threadID=1323298">forums.oracle.com/forums/thread.jspa?threadID=1323298 </a><br />
<a href="http://stackoverflow.com/questions/6614544/how-...on-using-jdbc-driver">stackoverflow.com/questions/6614544/how-&#8230;on-using-jdbc-driver</a><br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p><strong>saiki replied the topic: Re: SQL files execute : Incorrect syntax near &#8216;go&#8217;.</strong><br />
I Have set delimetr to GO in ant script</p>
<p>Then it worked</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/sql-files-execute-incorrect-syntax-near-go/">SQL files execute : Incorrect syntax near &#8216;go&#8217;.</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/sql-files-execute-incorrect-syntax-near-go/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Compile sql file for syntax for error</title>
		<link>https://www.scmgalaxy.com/tutorials/compile-sql-file-for-syntax-for-error/</link>
					<comments>https://www.scmgalaxy.com/tutorials/compile-sql-file-for-syntax-for-error/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 06 Dec 2017 10:32:08 +0000</pubDate>
				<category><![CDATA[Apache Ant]]></category>
		<category><![CDATA[sql]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=1900</guid>

					<description><![CDATA[<p>saiki created the topic: Compile sql file for syntax for error Hi, How to Compile sql file for syntax error [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/compile-sql-file-for-syntax-for-error/">Compile sql file for syntax for error</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>saiki created the topic: Compile sql file for syntax for error</strong><br />
Hi,</p>
<p>How to Compile sql file for syntax error using ANT script.</p>
<p>Is there any possibility to compile through batch file.</p>
<p>I have 100 of sql file i dont want to create db and know the error in file.</p>
<p>Like java i want to compile it</p>
<p><strong>rajeshkumar replied the topic: Re: Compile sql file for syntax for error</strong><br />
One way &#8211; exec method where you can mysqld and do whatever you want.<br />
<a href="http://ant.apache.org/manual/Tasks/exec.html">ant.apache.org/manual/Tasks/exec.html</a> </p>
<p>Another way<br />
<a href="http://www.roseindia.net/tutorials/ant/AntScriptCreateMysqlTable.shtml">www.roseindia.net/tutorials/ant/AntScriptCreateMysqlTable.shtml </a></p>
<p>Please try any of these and let me if you have any issues in script.<br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p><strong>saiki replied the topic: Re: Compile sql file for syntax for error</strong><br />
Currently we are creating database through ant script only from CI. We do this build for every 8hrs.</p>
<p>Problem is b4 running the build we are deleting the existing database and then creating the new DB with same name. If there are any syntax error in the sql file the build fails and then it takes some time to fix it.</p>
<p>Idea is to compile sql (Check for syntax error) file for every 3hrs rather than executing and creating new DB and data ?</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/compile-sql-file-for-syntax-for-error/">Compile sql file for syntax for error</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/compile-sql-file-for-syntax-for-error/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Can you create a list of files in Apache ant without using touch tasks</title>
		<link>https://www.scmgalaxy.com/tutorials/can-you-create-a-list-of-files-in-apache-ant-without-using-touch-tasks/</link>
					<comments>https://www.scmgalaxy.com/tutorials/can-you-create-a-list-of-files-in-apache-ant-without-using-touch-tasks/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 06 Dec 2017 10:29:33 +0000</pubDate>
				<category><![CDATA[Apache Ant]]></category>
		<category><![CDATA[Apache]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=1898</guid>

					<description><![CDATA[<p>rajeshkumar created the topic: Can you create a list of files in Apache ant without using touch tasks Can you [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/can-you-create-a-list-of-files-in-apache-ant-without-using-touch-tasks/">Can you create a list of files in Apache ant without using touch tasks</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>rajeshkumar created the topic: Can you create a list of files in Apache ant without using touch tasks</strong><br />
Can you create a list of files in Apache ant without using touch tasks?<br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/can-you-create-a-list-of-files-in-apache-ant-without-using-touch-tasks/">Can you create a list of files in Apache ant without using touch tasks</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/can-you-create-a-list-of-files-in-apache-ant-without-using-touch-tasks/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Apache ant interview questions</title>
		<link>https://www.scmgalaxy.com/tutorials/apache-ant-interview-questions/</link>
					<comments>https://www.scmgalaxy.com/tutorials/apache-ant-interview-questions/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 06 Dec 2017 10:27:24 +0000</pubDate>
				<category><![CDATA[Apache Ant]]></category>
		<category><![CDATA[Apache]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=1896</guid>

					<description><![CDATA[<p>rajeshkumar created the topic: Apache ant interview questions Links to all Apache Ant Task &#8211; ant.apache.org/manual/tasklist.html Question 1. Write a [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/apache-ant-interview-questions/">Apache ant interview questions</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>rajeshkumar created the topic: Apache ant interview questions</strong><br />
Links to all Apache Ant Task &#8211;<a href="http://ant.apache.org/manual/tasklist.html"> ant.apache.org/manual/tasklist.html </a></p>
<p>Question 1. Write a ant build.xml and call one batch file from build.xml. batch file should create one directory.</p>
<p>Question 2. Write a ant build.xml which should copy the files and folders from another and create a tar file.</p>
<p>Question 3. Linux &#8211; Write a ant build.xml which should create 5 files and five folders and change the file permission to all files to 644 and folder to 755.</p>
<p>Question 4. Write a two build.xml named with &#8220;build1.xml&#8221; and &#8220;build2.xml&#8221;. Each build.xml will compile one java program but build2.xml should be called from build1.xml.</p>
<p>Question 5. Go through all these questions mentioned in the url below and try to find an answer and provide your answer as part of comments.<br />
www.scmgalaxy.com/index.php?option=com_k&#8230;d-answers&#038;Itemid=120<br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p><strong>sribhavani_u replied the topic: Apache ant interview questions</strong><br />
Question1<br />
========
<project name="createdir" basedir="." default="batch">
<target name="batch"><br />
<exec dir="." executable="cmd"><br />
<arg line ="/c createdir.bat" /><br />
</exec><br />
</target>
</project>
<p>Question2<br />
=========
<project name="copyfiles" basedir="." default="tar">
<property name="src.dir" value="src"/>
<property name="build.dir" value="build"/>
<target name="copy"><br />
<copy todir="${build.dir}"><br />
<fileset dir="${src.dir}"><br />
</fileset><br />
</copy><br />
</target><br />
<target name="tar" depends="copy"><br />
<tar destfile="C:\SRI PROJECTS\apache-ant-1.9.0\testwork/tarfile.tar" basedir="${build.dir}"/><br />
</target>
</project>
<p>Question 3<br />
=========
<project name="setperm" basedir="." default="changeperm">
<target name="createfile"><br />
<touch file="file1"/><br />
<touch file="file2"/><br />
<touch file="file3"/><br />
<touch file="file4"/><br />
<touch file="file5"/><br />
<echo>files created</echo><br />
</target><br />
<target name="createfolder"><br />
<mkdir dir="folder1"/><br />
<mkdir dir="folder2"/><br />
<mkdir dir="folder3"/><br />
<mkdir dir="folder4"/><br />
<mkdir dir="folder5"/><br />
<echo>Folders created</echo><br />
</target><br />
<target name="changeperm" depends="createfolder,createfile"><br />
<chmod perm="644" type="file"><br />
<fileset dir="/home/sri/antwork"><br />
<exclude name="**/*.xml"/><br />
</fileset><br />
</chmod><br />
<chmod perm="755" type="dir"><br />
<dirset dir="/home/sri/antwork"/><br />
</chmod><br />
<echo>permissions changed files:644 folders:755</echo><br />
</target>
</project>
<p>Question4<br />
=========<br />
q4build1
<project name="build1" basedir="." default="callbuild">
<target name="clean"><br />
<delete dir="build"/><br />
</target><br />
<target name="compile" depends="clean"><br />
<mkdir dir="build"/><br />
<javac srcdir="." destdir="build"><br />
<include name="HelloWorld.java"/><br />
</javac><br />
</target><br />
<target name="callbuild" depends="compile"><br />
<ant antfile="build2.xml" inheritrefs="false"/><br />
</target>
</project>
<p>q4build2
<project name="build2" basedir="." default="compile">
<target name="compile" ><br />
<javac srcdir="." destdir="build"><br />
<include name="HelloWorld2.java"/><br />
</javac><br />
</target>
</project>
<p><strong>nineetha replied the topic: Apache ant interview questions</strong><br />
QUESTION 1
<project name="dir" basedir="." default="">
<target name="creatingbatch"><br />
<exec dir="D:\Projects\bin" executable="cmd"><br />
<arg line ="/c md.bat" /><br />
</exec><br />
</target>
</project>[/b]</p>
<p>QUESTION 2
<project name="copyfiles" basedir="." default="createtar">
<property name="src.dir" value="src"/>
<property name="bin.dir" value="bin"/>
<p><target name="copy"><br />
<copy todir="${src.dir}"><br />
<fileset dir=${bin.dir}"><br />
</fileset><br />
</copy><br />
</target><br />
<target name="create tar" depends="copy"><br />
<tar destfile="D:\Projects\build.tar" basedir="D:\Projects\src"/><br />
</target>
</project>
<p>QUESTSION 3
<project name="permissions" basedir="." default="chmod">
<target name="create file"><br />
<touch file="file1"/><br />
<touch file="file2"/><br />
<touch file="file3"/><br />
<touch file="file4"/><br />
<touch file="file5"/><br />
</target><br />
<target name="create folders"><br />
<mkdir dir="dir1"/><br />
<mkdir dir="dir2"/><br />
<mkdir dir="dir3"/><br />
<mkdir dir="dir4"/><br />
<mkdir dir="dir5"/><br />
</target><br />
<target name="chmod" depends="create file,create folders"><br />
<exec executable="chmod" type="file"><br />
<arg value="644"/><br />
<arg value="D:\Projects"><br />
</exec><br />
<target name="chmod_files" depends="create folders"><br />
<exec executable="chmod" type="dir"><br />
<arg value="755"/><br />
<arg value="D:\Projects"><br />
</exec><br />
</target>
</project>
<p>QUESTION 4
<project name="call" basedir="." default="subant1">
target<name="subant1" ><br />
<subant target="subant2"><br />
<fileset dir="." includes="helloworld/build.xml"/>&#8221;<br />
<javac srcdir="${src}" destdir="{bin}"><br />
</subant><br />
</target>
</project>
<project name="call2" basedir=".">
<target name="subant2"><br />
<subant taget="subant2"><br />
<javac srcdir="{src}" destdir="{bin}"><br />
<fileset dir="." includes="*/build.xml"/><br />
<fileset dir="." includes="welcome/build.xml"/><br />
</subant>
</project>
<p><strong>rajeshkumar replied the topic: Apache ant interview questions</strong><br />
Good work. I checked last week and its nice.<br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @<a href="http://twitter.com/RajeshKumarIn"> twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/apache-ant-interview-questions/">Apache ant interview questions</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/apache-ant-interview-questions/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Sample Apache ant assignment &#8211; try it out</title>
		<link>https://www.scmgalaxy.com/tutorials/sample-apache-ant-assignment-try-it-out/</link>
					<comments>https://www.scmgalaxy.com/tutorials/sample-apache-ant-assignment-try-it-out/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 06 Dec 2017 10:19:18 +0000</pubDate>
				<category><![CDATA[Apache Ant]]></category>
		<category><![CDATA[Apache]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=1892</guid>

					<description><![CDATA[<p>rajeshkumar created the topic: Sample Apache ant assignment &#8211; try it out Clone the prject- github.com/scmgalaxy/helloworld-java-ant Duplicate 10 source file [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/sample-apache-ant-assignment-try-it-out/">Sample Apache ant assignment &#8211; try it out</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>rajeshkumar created the topic: Sample Apache ant assignment &#8211; try it out</strong><br />
Clone the prject- <a href="http://github.com/scmgalaxy/helloworld-java-ant">github.com/scmgalaxy/helloworld-java-ant</a> </p>
<p>Duplicate 10 source file from HelloWorld.java<br />
Create a directory called &#8220;mybuild&#8221;<br />
Clean all 10 java class files if exist<br />
compile only 5 java files<br />
Copy rest 5 files under folder called &#8220;no-need-to-compile&#8221;<br />
create package of jar / war of the compiled files<br />
Note: must use echo in all programs<br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p><strong>crystal2904 replied the topic: Sample Apache ant assignment &#8211; try it out</strong>
<project name="MyProject" basedir="." default="package">
<property name="src.dir" value="src"/>
<property name="build.dir" value="mybuild"/>
<property name="classes.dir" value="${build.dir}/classes"/>
<property name="jar.dir" value="${build.dir}/jar"/>
<property name="no-need-to-compile" value="${build.dir}/no-need-to-compile" />
<p><target name="clean"><br />
<echo message="We are in cleaning target........."/><br />
<delete dir="${build.dir}"/><br />
<echo message="Cleaning is done..."	/><br />
</target></p>
<p><target name="compile" depends="clean"><br />
<echo message="Its time to compile only 5 files.... start Compiling" /><br />
<mkdir dir="${classes.dir}"/><br />
<javac includeantruntime="false" srcdir="${src.dir}" destdir="${classes.dir}" ><br />
<include name="HelloWorld.java" /><br />
<include name="HelloWorld1.java" /><br />
<include name="HelloWorld2.java" /><br />
<include name="HelloWorld3.java" /><br />
<include name="HelloWorld4.java" /><br />
</javac><br />
<echo message="Compiled....."/><br />
</target></p>
<p><target name="mkdir" depends="compile"><br />
<echo message="First Creating the directory" /><br />
<mkdir dir="${no-need-to-compile}"/><br />
<echo message="Directory Created"/><br />
</target></p>
<p><target name="copy" depends="mkdir"><br />
<echo message="Going to copy the remaining filw which are not compiled to ${no-need-to-compile} folder" /><br />
<copy todir="${no-need-to-compile}" ><br />
<fileset dir="${src.dir}" ><br />
<exclude name="HelloWorld.java" /><br />
<exclude name="HelloWorld1.java" /><br />
<exclude name="HelloWorld2.java" /><br />
<exclude name="HelloWorld3.java" /><br />
<exclude name="HelloWorld4.java" /><br />
</fileset><br />
</copy><br />
<echo message="Files are moved" /><br />
</target></p>
<p><target name="package" depends="copy"><br />
<echo message="Now building the jar .... " /><br />
<mkdir dir="${jar.dir}"/><br />
<jar destfile="${jar.dir}/${ant.project.name}.jar" basedir="${classes.dir}"></p>
<p></jar><br />
<echo message="You know something jar is built"/><br />
</target></p>
<p><target name="clean-build" depends="clean,package"/></p>
</project>
<p><strong>rajeshkumar replied the topic: Sample Apache ant assignment &#8211; try it out</strong><br />
There are some issues in terms of understanding the requirement but its a good start to you.<br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/sample-apache-ant-assignment-try-it-out/">Sample Apache ant assignment &#8211; try it out</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/sample-apache-ant-assignment-try-it-out/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Sample Apache ant project for begginers</title>
		<link>https://www.scmgalaxy.com/tutorials/sample-apache-ant-project-for-begginers/</link>
					<comments>https://www.scmgalaxy.com/tutorials/sample-apache-ant-project-for-begginers/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 06 Dec 2017 10:12:46 +0000</pubDate>
				<category><![CDATA[Apache Ant]]></category>
		<category><![CDATA[Apache]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=1886</guid>

					<description><![CDATA[<p>rajeshkumar created the topic: Sample Apache ant project for begginers Pre- 1. clone the src code from &#8211; github.com/scmgalaxy/Javatest1 2. [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/sample-apache-ant-project-for-begginers/">Sample Apache ant project for begginers</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>rajeshkumar created the topic: Sample Apache ant project for begginers</strong><br />
Pre-<br />
1. clone the src code from &#8211; <a href="http://github.com/scmgalaxy/Javatest1">github.com/scmgalaxy/Javatest1</a><br />
2. Create a proper build structure via ant</p>
<p>Write a two build.xml &#8211;<br />
One(Name of the file &#8211; Build.xml)<br />
Second(Name of the file &#8211; myfile.xml)</p>
<p>You should do the following things in build.xml<br />
1. copy the src file from clone folder to build folder<br />
2. change the permission of file to current user<br />
3. create a build folder strcuture needed. use your knowledge<br />
4. Comiple the source code<br />
5. Call build file &#8211; myfile.xml</p>
<p>You should do the following things in myfile.xml<br />
1. Zip the compiled file.<br />
2. Create a jar file.<br />
3. Delete the .class file<br />
4. Sleep for 10 sec<br />
5. create a directory using exec.(Not ant tasks)<br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p><strong>harsha924 replied the topic: Sample Apache ant project for begginers</strong><br />
Hi Rajesh,</p>
<p>Here is my assignment.</p>
<p>Regards,<br />
Harsha</p>
<p>File Attachment:<br />
File Name:	MyAntProje&#8230;rsha.zip<br />
File Size:5 KB<br />
<a href="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/12/MyAntProject-Harsha.zip">MyAntProject-Harsha</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/sample-apache-ant-project-for-begginers/">Sample Apache ant project for begginers</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/sample-apache-ant-project-for-begginers/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Apache Ant Interview Questions and Answers</title>
		<link>https://www.scmgalaxy.com/tutorials/apache-ant-interview-questions-and-answers-2/</link>
					<comments>https://www.scmgalaxy.com/tutorials/apache-ant-interview-questions-and-answers-2/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 06 Dec 2017 10:10:06 +0000</pubDate>
				<category><![CDATA[Apache Ant]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=1884</guid>

					<description><![CDATA[<p>rajeshkumar created the topic: Apache Ant Interview Questions and Answers Please provide answers for the all following questions here&#8230; www.scmgalaxy.com/scm/general/interview-&#8230;ons-and-answers.html [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/apache-ant-interview-questions-and-answers-2/">Apache Ant Interview Questions and Answers</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>rajeshkumar created the topic: Apache Ant Interview Questions and Answers</strong><br />
Please provide answers for the all following questions here&#8230;<br />
www.scmgalaxy.com/scm/general/interview-&#8230;ons-and-answers.html<br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/apache-ant-interview-questions-and-answers-2/">Apache Ant Interview Questions and Answers</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/apache-ant-interview-questions-and-answers-2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Apache ant programming Exercise</title>
		<link>https://www.scmgalaxy.com/tutorials/apache-ant-programming-exercise/</link>
					<comments>https://www.scmgalaxy.com/tutorials/apache-ant-programming-exercise/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 06 Dec 2017 10:04:30 +0000</pubDate>
				<category><![CDATA[Apache Ant]]></category>
		<category><![CDATA[Apache]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=1882</guid>

					<description><![CDATA[<p>rajeshkumar created the topic: Apache ant programming Exercise Apache ant programming excercise FIRST Download Ant from the Apache Software Foundation [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/apache-ant-programming-exercise/">Apache ant programming Exercise</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>rajeshkumar created the topic: Apache ant programming Exercise</strong><br />
Apache ant programming excercise</p>
<p>FIRST<br />
Download Ant from the Apache Software Foundation and install it.</p>
<p>Exercise Question 1</p>
<p>Pre-<br />
1. clone the src code from &#8211;<a href="http://github.com/scmgalaxy/SampleJavaFiles"> github.com/scmgalaxy/SampleJavaFiles </a><br />
2. Create a proper build structure via ant</p>
<p>Write a two build.xml &#8211;<br />
One(Name of the file &#8211; Build.xml)<br />
Second(Name of the file &#8211; myfile.xml)</p>
<p>You should do the following things in build.xml<br />
1. copy the src file from clone folder to build folder<br />
2. change the permission of file to current user<br />
3. create a build folder strcuture needed. use your knowledge<br />
4. Comiple the source code<br />
5. Call build file &#8211; myfile.xml</p>
<p>You should do the following things in myfile.xml<br />
1. Zip the compiled file.<br />
2. Create a jar file.<br />
3. Delete the .class file<br />
4. Sleep for 10 sec<br />
5. create a directory using exec.(Not ant tasks)</p>
<p>Exercise Question 2</p>
<p>Clone the prject- github.com/scmgalaxy/helloworld-java-ant</p>
<p>Duplicate 10 source file from HelloWorld.java<br />
Create a directory called &#8220;mybuild&#8221;<br />
Clean all 10 java class files if exist<br />
compile only 5 java files<br />
Copy rest 5 files under folder called &#8220;no-need-to-compile&#8221;<br />
create package of jar / war of the compiled files<br />
Note: must use echo in all programs</p>
<p>Exercise Question 3<br />
Write a ant build.xml and call one batch file from build.xml. batch file should create one directory.</p>
<p>Exercise Question 4</p>
<p>Links to all Apache Ant Task &#8211; ant.apache.org/manual/tasklist.html</p>
<p>Exercise Question 5<br />
Write a ant build.xml and call one batch file from build.xml. batch file should create one directory.</p>
<p>Exercise Question 6<br />
Write a ant build.xml which should copy the files and folders from another and create a tar file.</p>
<p>Exercise Question 7<br />
Linux &#8211; Write a ant build.xml which should create 5 files and five folders and change the file permission to all files to 644 and folder to 755.</p>
<p>Exercise Question 8<br />
Write a two build.xml named with &#8220;build1.xml&#8221; and &#8220;build2.xml&#8221;. Each build.xml will compile one java program but build2.xml should be called from build1.xml.</p>
<p>Exercise Question 9<br />
Go through all these questions mentioned in the url below and try to find an answer and provide your answer as part of comments.<br />
www.scmgalaxy.com/index.php?option=com_k&#8230;d-answers&#038;Itemid=120 </p>
<p>Exercise Question 10.<br />
Write a ant script which will create a directory called &#8220;hptraining&#8221; as part of target called &#8220;training&#8221;</p>
<p>Exercise Question 11.<br />
Write a ant script which will copy some files to keep under directory called &#8220;myfiles&#8221; and make sure you are renaming one file with yourname.txt.</p>
<p>Exercise Question 12.<br />
Modify a script from 3, and introduce your name thorugh command line and display using ant.</p>
<p>Exercise Question 13.<br />
Write some source code that is part of a package. Now write an Ant build file to compile, jar and javadoc the package.<br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/apache-ant-programming-exercise/">Apache ant programming Exercise</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/apache-ant-programming-exercise/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Power Point PPT: Using Ant To Build J2 Ee Application &#8211; Complete Guide</title>
		<link>https://www.scmgalaxy.com/tutorials/power-point-ppt-using-ant-to-build-j2-ee-application/</link>
					<comments>https://www.scmgalaxy.com/tutorials/power-point-ppt-using-ant-to-build-j2-ee-application/#comments</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sun, 21 Mar 2010 20:57:58 +0000</pubDate>
				<category><![CDATA[Apache Ant]]></category>
		<category><![CDATA[Build Management & Tools]]></category>
		<category><![CDATA[ANT]]></category>
		<category><![CDATA[Application]]></category>
		<category><![CDATA[Build]]></category>
		<category><![CDATA[Build J2EE Application]]></category>
		<category><![CDATA[Build J2EE Application Using Ant]]></category>
		<category><![CDATA[Build J2EE Application Using Ant PPT]]></category>
		<category><![CDATA[Build J2EE Application Using Ant Presentation]]></category>
		<category><![CDATA[Build J2EE Application Using Ant Slideshare]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[How to build J2EE application in Ant]]></category>
		<category><![CDATA[How to build J2EE application in Ant PPT]]></category>
		<category><![CDATA[Instruction]]></category>
		<category><![CDATA[J2EE]]></category>
		<category><![CDATA[J2EE Application]]></category>
		<category><![CDATA[PPt]]></category>
		<category><![CDATA[PPT presentation]]></category>
		<category><![CDATA[Process]]></category>
		<category><![CDATA[Slideshare]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2010/03/21/power-point-ppt-using-ant-to-build-j2-ee-application/</guid>

					<description><![CDATA[<p>Power Point PPT: Using Ant To Build J2 Ee Application Using Ant To Build J2 Ee Applications from Rajesh Kumar [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/power-point-ppt-using-ant-to-build-j2-ee-application/">Power Point PPT: Using Ant To Build J2 Ee Application &#8211; Complete Guide</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h1><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-4231" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/03/ant-to-build-j2-ee-applicat.png" alt="ant-to-build-j2ee-application" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/03/ant-to-build-j2-ee-applicat.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/03/ant-to-build-j2-ee-applicat-300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></h1>
<h1>Power Point PPT: Using Ant To Build J2 Ee Application</h1>
<p><iframe style="border: 1px solid #CCC; border-width: 1px; margin-bottom: 5px; max-width: 100%;" src="//www.slideshare.net/slideshow/embed_code/key/le9jPXaQEhyjYd" width="595" height="485" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" allowfullscreen="allowfullscreen"> </iframe></p>
<div style="margin-bottom: 5px;"><strong> <a title="Using Ant To Build J2 Ee Applications" href="//www.slideshare.net/rajeshatbuzz/using-ant-to-build-j2-ee-applications" target="_blank" rel="noopener">Using Ant To Build J2 Ee Applications</a> </strong> from <strong><a href="https://www.slideshare.net/rajeshatbuzz" target="_blank" rel="noopener">Rajesh Kumar</a></strong></div>
<p>&nbsp;</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/power-point-ppt-using-ant-to-build-j2-ee-application/">Power Point PPT: Using Ant To Build J2 Ee Application &#8211; Complete Guide</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/power-point-ppt-using-ant-to-build-j2-ee-application/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
