How to compile jsp files with ANT
Dear, How to compile JSP files using ANT and Websphere Application Server 6.0 and also use websphere's java compiler and libraries Kindly help me to solve this pbm by Lokesh
Getting Buildfile: build.xml does not exist! and Build failed
I had my apache-ant-1.6.2 and completed setting varaibles ANT_HOME PATH but when I run basic ant command like ant -version at CMD getting messages like(copied from the CMD, no manipulation) build.xml does not exist! Build failed Clue: I logged off and logged in as a different user(with my friends login). Now getting version of ant when I ran the command ant -version at CMD -- View this message in context: http://www.nabble.com/Getting-Buildfile%3A-build.xml-does-not-exist%21-and-Build-failed-tf3258972.html#a9058817 Sent from the Ant - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting Buildfile: build.xml does not exist! and Build failed
Its is not entirely clear what problem is that you are facing. ant -version prints the version of ANT in the PATH. ant -v executes default target of build.xml in the current dir in "verbose" mode. In this case if there is no build.xml in the current directory you will see messages like build.xml does not exist! Build failed You need a build.xml to invoke ANT. HTH -Prashant vmanthi wrote: I had my apache-ant-1.6.2 and completed setting varaibles ANT_HOME PATH but when I run basic ant command like ant -version at CMD getting messages like(copied from the CMD, no manipulation) build.xml does not exist! Build failed Clue: I logged off and logged in as a different user(with my friends login). Now getting version of ant when I ran the command ant -version at CMD - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to compile jsp files with ANT
Hi Lokesh, I'm assuming you want to pre-compile JSPs. You can use Jasper for that. Take a look at the Jasper ANT task here: http://tomcat.apache.org/tomcat-5.5-doc/jasper-howto.html The pre-compilation process first converts all JSP files to .java files and then compiles them into class files, it will also modify web.xml to create a servlet mapping of every JSP class file. for example: org.apache.jsp.web._005fterms.copyright_jsp org.apache.jsp.web._005fterms.copyright_jsp org.apache.jsp.web._005fterms.copyright_jsp /web/_terms/copyright.jsp I guess that's what you are looking for. -Rashmi - Original Message From: Lokesh Jayaraman <[EMAIL PROTECTED]> To: user@ant.apache.org Sent: Tuesday, February 20, 2007 4:41:55 AM Subject: How to compile jsp files with ANT Dear, How to compile JSP files using ANT and Websphere Application Server 6.0 and also use websphere's java compiler and libraries Kindly help me to solve this pbm by Lokesh Sucker-punch spam with award-winning protection. Try the free Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/features_spam.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
fileset and filename under copy task
Hello: I am tring to do something simple. I want to copy files from from one directory to another by listing specific groups of file ie *.XML or *.html The follwing works: Copy Other Files But this uses an exclude, I want to specify the files to be copied. This does NOT work: Copy Other Files ${bin} ${src} Produces the following output: C:\dev\eclipse\metaDataExport>ant copy_other -debug Apache Ant version 1.6.5 compiled on June 2 2005 Buildfile: build.xml Adding reference: ant.PropertyHelper Detected Java version: 1.5 in: c:\progra~1\java\jdk1.5.0_10\jre Detected OS: Windows XP Adding reference: ant.ComponentHelper Setting ro project property: ant.version -> Apache Ant version 1.6.5 compiled on June 2 2005 Setting ro project property: ant.file -> C:\dev\eclipse\metaDataExport\build.xml Adding reference: ant.projectHelper Adding reference: ant.parsing.context Adding reference: ant.targets parsing buildfile C:\dev\eclipse\metaDataExport\build.xml with URI = file:///C:/dev/eclipse/metaDataExport/build.xml Setting ro project property: ant.file.null -> C:\dev\eclipse\metaDataExport\build.xml Project base dir set to: C:\dev\eclipse\metaDataExport +Target: Adding reference: db2JDBC Adding reference: hibernate3.2 +Target: main +Target: init +Target: compile +Target: copy_other +Target: jarit +Target: SAVEcopy_other +Target: SAVE2copy_other Setting project property: message -> Building the .jar file. Setting project property: src -> ./src/ Setting project property: bin -> ./bin/ Setting project property: hibernate3.2_base -> C:\hibernate-3.2\ Setting project property: db2JDBCdriver_base -> C:\Program Files\IBM\SQLLIB\java\ Could not load a dependent class (com/sun/media/jai/codec/FileSeekableStream) for type image Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp Adding reference: db2JDBC Could not load a dependent class (com/sun/media/jai/codec/FileSeekableStream) for type image Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp Adding reference: hibernate3.2 Attempting to create object of type org.apache.tools.ant.helper.DefaultExecutor Adding reference: ant.executor Build sequence for target(s) `copy_other' is [copy_other] Complete build sequence is [copy_other, init, compile, jarit, main, SAVEcopy_other, SAVE2copy_other, ] copy_other: [echo] [echo] Copy Other Files [echo] ./bin/ [echo] ./src/ [echo] [echo] Could not load a dependent class (com/sun/media/jai/codec/FileSeekableStream) for type image Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp Could not load a dependent class (jdepend/xmlui/JDepend) for type jdepend Could not load a dependent class (junit/framework/Test) for type junit fileset: Setup scanner in dir C:\dev\eclipse\metaDataExport\src with patternSet{ includes: [] excludes: [] } [copy] hibernate.cfg.xml omitted as hibernate.cfg.xml is up to date. BUILD SUCCESSFUL Total time: 0 seconds C:\dev\eclipse\metaDataExport> need some assistance. thanks kbd
RE: fileset and filename under copy task
>From the examples in the 1.6.5 manual I would assume that the following should work. I did not try it. HTH Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 20, 2007 11:55 AM To: user@ant.apache.org Subject: fileset and filename under copy task Hello: I am tring to do something simple. I want to copy files from from one directory to another by listing specific groups of file ie *.XML or *.html The follwing works: Copy Other Files But this uses an exclude, I want to specify the files to be copied. This does NOT work: Copy Other Files ${bin} ${src} Produces the following output: C:\dev\eclipse\metaDataExport>ant copy_other -debug Apache Ant version 1.6.5 compiled on June 2 2005 Buildfile: build.xml Adding reference: ant.PropertyHelper Detected Java version: 1.5 in: c:\progra~1\java\jdk1.5.0_10\jre Detected OS: Windows XP Adding reference: ant.ComponentHelper Setting ro project property: ant.version -> Apache Ant version 1.6.5 compiled on June 2 2005 Setting ro project property: ant.file -> C:\dev\eclipse\metaDataExport\build.xml Adding reference: ant.projectHelper Adding reference: ant.parsing.context Adding reference: ant.targets parsing buildfile C:\dev\eclipse\metaDataExport\build.xml with URI = file:///C:/dev/eclipse/metaDataExport/build.xml Setting ro project property: ant.file.null -> C:\dev\eclipse\metaDataExport\build.xml Project base dir set to: C:\dev\eclipse\metaDataExport +Target: Adding reference: db2JDBC Adding reference: hibernate3.2 +Target: main +Target: init +Target: compile +Target: copy_other +Target: jarit +Target: SAVEcopy_other +Target: SAVE2copy_other Setting project property: message -> Building the .jar file. Setting project property: src -> ./src/ Setting project property: bin -> ./bin/ Setting project property: hibernate3.2_base -> C:\hibernate-3.2\ Setting project property: db2JDBCdriver_base -> C:\Program Files\IBM\SQLLIB\java\ Could not load a dependent class (com/sun/media/jai/codec/FileSeekableStream) for type image Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp Adding reference: db2JDBC Could not load a dependent class (com/sun/media/jai/codec/FileSeekableStream) for type image Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp Adding reference: hibernate3.2 Attempting to create object of type org.apache.tools.ant.helper.DefaultExecutor Adding reference: ant.executor Build sequence for target(s) `copy_other' is [copy_other] Complete build sequence is [copy_other, init, compile, jarit, main, SAVEcopy_other, SAVE2copy_other, ] copy_other: [echo] [echo] Copy Other Files [echo] ./bin/ [echo] ./src/ [echo] [echo] Could not load a dependent class (com/sun/media/jai/codec/FileSeekableStream) for type image Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp Could not load a dependent class (jdepend/xmlui/JDepend) for type jdepend Could not load a dependent class (junit/framework/Test) for type junit fileset: Setup scanner in dir C:\dev\eclipse\metaDataExport\src with patternSet{ includes: [] excludes: [] } [copy] hibernate.cfg.xml omitted as hibernate.cfg.xml is up to date. BUILD SUCCESSFUL Total time: 0 seconds C:\dev\eclipse\metaDataExport> need some assistance. thanks kbd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: fileset and filename under copy task
As much as you used the element you can use an element to define which files 'to include' Something like Copy Other Files - Original Message From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> To: user@ant.apache.org Sent: Tuesday, February 20, 2007 1:54:44 PM Subject: fileset and filename under copy task Hello: I am tring to do something simple. I want to copy files from from one directory to another by listing specific groups of file ie *.XML or *.html The follwing works: Copy Other Files But this uses an exclude, I want to specify the files to be copied. This does NOT work: Copy Other Files ${bin} ${src} Produces the following output: C:\dev\eclipse\metaDataExport>ant copy_other -debug Apache Ant version 1.6.5 compiled on June 2 2005 Buildfile: build.xml Adding reference: ant.PropertyHelper Detected Java version: 1.5 in: c:\progra~1\java\jdk1.5.0_10\jre Detected OS: Windows XP Adding reference: ant.ComponentHelper Setting ro project property: ant.version -> Apache Ant version 1.6.5 compiled on June 2 2005 Setting ro project property: ant.file -> C:\dev\eclipse\metaDataExport\build.xml Adding reference: ant.projectHelper Adding reference: ant.parsing.context Adding reference: ant.targets parsing buildfile C:\dev\eclipse\metaDataExport\build.xml with URI = file:///C:/dev/eclipse/metaDataExport/build.xml Setting ro project property: ant.file.null -> C:\dev\eclipse\metaDataExport\build.xml Project base dir set to: C:\dev\eclipse\metaDataExport +Target: Adding reference: db2JDBC Adding reference: hibernate3.2 +Target: main +Target: init +Target: compile +Target: copy_other +Target: jarit +Target: SAVEcopy_other +Target: SAVE2copy_other Setting project property: message -> Building the .jar file. Setting project property: src -> ./src/ Setting project property: bin -> ./bin/ Setting project property: hibernate3.2_base -> C:\hibernate-3.2\ Setting project property: db2JDBCdriver_base -> C:\Program Files\IBM\SQLLIB\java\ Could not load a dependent class (com/sun/media/jai/codec/FileSeekableStream) for type image Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp Adding reference: db2JDBC Could not load a dependent class (com/sun/media/jai/codec/FileSeekableStream) for type image Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp Adding reference: hibernate3.2 Attempting to create object of type org.apache.tools.ant.helper.DefaultExecutor Adding reference: ant.executor Build sequence for target(s) `copy_other' is [copy_other] Complete build sequence is [copy_other, init, compile, jarit, main, SAVEcopy_other, SAVE2copy_other, ] copy_other: [echo] [echo] Copy Other Files [echo] ./bin/ [echo] ./src/ [echo] [echo] Could not load a dependent class (com/sun/media/jai/codec/FileSeekableStream) for type image Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp Could not load a dependent class (jdepend/xmlui/JDepend) for type jdepend Could not load a dependent class (junit/framework/Test) for type junit fileset: Setup scanner in dir C:\dev\eclipse\metaDataExport\src with patternSet{ includes: [] excludes: [] } [copy] hibernate.cfg.xml omitted as hibernate.cfg.xml is up to date. BUILD SUCCESSFUL Total time: 0 seconds C:\dev\eclipse\metaDataExport> need some assistance. thanks kbd It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar. http://tools.search.yahoo.com/toolbar/features/mail/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: fileset and filename under copy task
[EMAIL PROTECTED] a écrit : This does NOT work: Copy Other Files ${bin} ${src} Hello, You can do something much simpler like : MAT. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: fileset and filename under copy task
bill/wilandra a écrit : >From the examples in the 1.6.5 manual I would assume that the following should work. I did not try it. HTH Bill Hello, Unfortunatly this won't work as a fileset behaves like an 'and' selector container. Therefore quoting http://ant.apache.org/manual/CoreTypes/fileset.html : "If any of the selectors within the FileSet do not select the file, the file is not considered part of the FileSet" MAT. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]