Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
|
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 9th, 2006, 06:35 AM
Registered User
 
Join Date: Oct 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Several source dirs in build.xml

Hi

Can I have more than one source folder in my WebProject? If the answer is yes, how do I define them in the build.xml file?

Thanks
Rui Gonçalves
 
Old October 11th, 2006, 01:48 PM
Friend of Wrox
 
Join Date: Jan 2006
Posts: 198
Thanks: 0
Thanked 0 Times in 0 Posts
Default

In your build.xml file, simply have multiple <javac> elements for each source dir. Have them all compile to the same class folder. That way, when it comes time to put them into a JAR or WAR, you can simply treat them as a single unit. You may have to set up classpath parameters appropriately so that the interdependencies ebtween the different source directories get worked out, but I've done it and it works great.

Jon Emerson
http://www.jonemerson.net/





Similar Threads
Thread Thread Starter Forum Replies Last Post
Professional XML source code theophine XML 2 July 13th, 2010 03:21 AM
Converting Source Xml into Target Xml Using XSL. alapati.sasi XSLT 3 May 14th, 2007 10:54 AM
Ignoring namespace in source XML Chamkaur XSLT 1 June 16th, 2006 03:29 AM
transformNode w/2 source XML docs? kwilliams XSLT 0 July 25th, 2005 03:38 PM
Professional XML source code theophine XML 0 January 29th, 2004 11:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.