Deepak Lal

Ranch Hand
+ Follow
since Jul 01, 2008
Deepak likes ...
Eclipse IDE Java
Cows and Likes
Cows
Total received
-3
In last 30 days
0
Total given
0
Likes
Total received
8
Received in last 30 days
0
Total given
28
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Deepak Lal

Currently build.xml file is showing Build Unsuccessful

Could you tell me what properties to be set for property tag for $ related fields in the below build.xml file
So that build.xml file builds successfully.

<property name="build_dir_war" value="${build_dir}/MyProject_WAR"/>

<pathelement location="${java_home}/lib/tools.jar"/>

<mkdir dir="${build_dir_war}"/>

<mkdir dir="${build_dir_war}/WEB-INF"/>
<mkdir dir="${build_dir_war}/WEB-INF/classes"/>
<javac classpathref="web.classpath" executable="${javacompiler}" fork="yes" srcdir="${src_web_java}" destdir="${build_dir_war}/WEB-INF/classes/"> <classpath> <fileset dir="${external_jar_classpath}">

<copy todir="${build_dir_war}/" preservelastmodified="true"> <fileset dir="${src_web_jsp}">

<copy toDir="${build_dir_war}${web_apps_property_destination}"> <fileset dir="${web_apps_property_source}" includes="*.properties"/></copy>

<!-- make the war-->
<jar destfile="${build_dir_war}/tess_new.war">
<fileset dir="${build_dir_war}" includes="**/*.*"/> </jar> </target>

<!-- Delete the ${build_dir_war} used by jsp compilation --> <target name="compile_clean_jsp" description="compile clean for jsp build" > <delete dir="${build_dir_war}/"/> <mkdir dir="${build_dir_war}"/> </target>

<!-- Delete the ${build_dir} directory -->
<target name="buildclean"  description="compileclean up" > <delete dir="${build_dir}/"/> </target>


Regards,
Deepak Lal
4 weeks ago

Stephan van Hulst wrote:Why are you using Ant, and not Maven or Gradle?



I think im posting my questions in ant forum but not the gradle or maven forum. Im using ant as a build tool.

Can you answer to my ant question ?

Regards,
Deepak Lal
4 weeks ago

Tim Holloway wrote:Apparently there is no definition in the Ant build.xml file for the property named "src_web_java". It's not something that's built into Ant, so you have to define it yourself.



 

 

 

Build Tools » Ant with Ivy

${src_web_java} does not exist during Ant Build failure

Deepak Lal , Ranch Hand

Jun 03, 2022 11:53:21

Quote

Hi Everyone,

Im running a ant's build.xml file and im getting an errorMessage as below. Could you please tell me why ${src_web_java} does not exist  and Ant build.xml is failing


<javac classpathref="web.classpath" executable="${javacompiler}" fork="yes" srcdir="${src_web_java}" destdir="${build_dir_war}/WEB-INF/classes/"> <classpath> <fileset dir="${external_jar_classpath}"> <include name="**/*.jar"/> </fileset> </classpath> <include name="com/**/*.java"/> </javac>


warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds

BUILD FAILED D:\MyProject\build.xml:33: srcdir "D:\ MyProject\${src_web_java}" does not exist!


what is the reason of failing build.?
Please help me with this ?


Regards, 
Deepak Lal

Tim Holloway , Saloon Keeper staff

Jun 03, 2022 14:17:49

+1 -1 Quote Report

Apparently there is no definition in the Ant build.xml file for the property named "src_web_java". It's not something that's built into Ant, so you have to define it yourself.

Deepak Lal , Ranch Hand

Jun 06, 2022 01:16:37

Quote

Currently build.xml file is showing Build Unsuccessful

Could you tell me what properties to be set for property tag for $ related fields in the below build.xml file
So that build.xml file builds successfully.

<property name="build_dir_war" value="${build_dir}/MyProject_WAR"/>

<pathelement location="${java_home}/lib/tools.jar"/>

<mkdir dir="${build_dir_war}"/>

<mkdir dir="${build_dir_war}/WEB-INF"/>
<mkdir dir="${build_dir_war}/WEB-INF/classes"/>
<javac classpathref="web.classpath" executable="${javacompiler}" fork="yes" srcdir="${src_web_java}" destdir="${build_dir_war}/WEB-INF/classes/"> <classpath> <fileset dir="${external_jar_classpath}">

<copy todir="${build_dir_war}/" preservelastmodified="true"> <fileset dir="${src_web_jsp}">

<copy toDir="${build_dir_war}${web_apps_property_destination}"> <fileset dir="${web_apps_property_source}" includes="*.properties"/></copy>

<!-- make the war-->
<jar destfile="${build_dir_war}/tess_new.war">
<fileset dir="${build_dir_war}" includes="**/*.*"/> </jar> </target>

<!-- Delete the ${build_dir_war} used by jsp compilation --> <target name="compile_clean_jsp" description="compile clean for jsp build" > <delete dir="${build_dir_war}/"/> <mkdir dir="${build_dir_war}"/> </target>

<!-- Delete the ${build_dir} directory -->
<target name="buildclean"  description="compileclean up" > <delete dir="${build_dir}/"/> </target>


Regards,
Deepak Lal

4 weeks ago
Currently build.xml file is showing Build Unsuccessful

Could you tell me what properties to be set for property tag for $ related fields in the below build.xml file
So that build.xml file builds successfully.

<property name="build_dir_war" value="${build_dir}/MyProject_WAR"/>

<pathelement location="${java_home}/lib/tools.jar"/>

<mkdir dir="${build_dir_war}"/>

<mkdir dir="${build_dir_war}/WEB-INF"/>
<mkdir dir="${build_dir_war}/WEB-INF/classes"/>
<javac classpathref="web.classpath" executable="${javacompiler}" fork="yes" srcdir="${src_web_java}" destdir="${build_dir_war}/WEB-INF/classes/"> <classpath> <fileset dir="${external_jar_classpath}">

<copy todir="${build_dir_war}/" preservelastmodified="true"> <fileset dir="${src_web_jsp}">

<copy toDir="${build_dir_war}${web_apps_property_destination}"> <fileset dir="${web_apps_property_source}" includes="*.properties"/></copy>

<!-- make the war-->
<jar destfile="${build_dir_war}/tess_new.war">
<fileset dir="${build_dir_war}" includes="**/*.*"/> </jar> </target>

<!-- Delete the ${build_dir_war} used by jsp compilation --> <target name="compile_clean_jsp" description="compile clean for jsp build" > <delete dir="${build_dir_war}/"/> <mkdir dir="${build_dir_war}"/> </target>

<!-- Delete the ${build_dir} directory -->
<target name="buildclean"  description="compileclean up" > <delete dir="${build_dir}/"/> </target>


Regards,
Deepak Lal
4 weeks ago
Hi Everyone,

Im running a ant's build.xml file and im getting an errorMessage as below. Could you please tell me why ${src_web_java} does not exist  and Ant build.xml is failing


<javac classpathref="web.classpath" executable="${javacompiler}" fork="yes" srcdir="${src_web_java}" destdir="${build_dir_war}/WEB-INF/classes/"> <classpath> <fileset dir="${external_jar_classpath}"> <include name="**/*.jar"/> </fileset> </classpath> <include name="com/**/*.java"/> </javac>


warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds

BUILD FAILED D:\MyProject\build.xml:33: srcdir "D:\ MyProject\${src_web_java}" does not exist!


what is the reason of failing build.?
Please help me with this ?


Regards, 
Deepak Lal
1 month ago

Deepak Lal wrote:Jeanne and scott,
           What are the winners getting a ebook or a hard copy
Because a hard copy is worth carrying and reading

Hope to win a copy of print version of this book.

Regards,
Deepak Lal



When are the winners going to be announced.?
Jeanne and scott,
           What are the winners getting a ebook or a hard copy
Because a hard copy is worth carrying and reading

Hope to win a copy of print version of this book.

Regards,
Deepak Lal
Hi Scott,
                Its good to know that it will be a single ocp study guide book

Regards,
Deepak Lal

Hi Jeanne and Scott,
       How is the study guide different from previous study guides

Deepak
Hope to win the hard copy of this precious book so that i can refer it every now and then

I have already posted in main forum asking my doubts
How is the OCP study guide different from earlier certification guides ?

Deepak Lal
Hi
   1. How is the  OCP Oracle Certified Professional Java SE 17 Developer Study Guide: Exam 1Z0-829 different from the previous versions of Java  certifications. ?

   2. Is this the final print version of the book.?

    3.Does the guide accompany all the latest  features with working examples

Regards,
Deepak Lal
Welcome Scott Selikoff and Jeanne Boyarsky for promoting your book

Regards,
Deepak Lal