Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2007

Tip: Looking for answers? Try searching our database.

Ant Build.xml - Cant get wsdl2java target to compile directory of files

Thread view: 
DaveJ - 18 May 2007 14:27 GMT
Hi,

I'm fairly new to using the ant build environment, so I'm sure I'm
asking a silly question but here goes anyway.
I have a directory of wsdl files called /tmp/wsdl

I'm trying to use the axis wsdl2java target to compile each of the
wsdl files to java.  At the moment I have to put a line in my
build.xml for each file I want to compile to java.

Is there a way I can just get an entire dir of wsdl files compiled?
I've already tried using "*".  Heres what my build file looks like at
the moment:

<path id="axis.classpath">
       <fileset dir="third-party/lib">
               <include name="**/*jar"/>
               <include name="apache-axis-1.1-beta.jar"/>
               <include name="apache-axis-commons-discovery-1.1-
beta.jar"/>
               <include name="apache-axis-commons-logging-1.1-
beta.jar"/>
               <include name="apache-axis-jaxrpc-1.1-beta.jar"/>
               <include name="apache-axis-saaj-1.1-beta.jar"/>
               <include name="apache-axis-wsdl4j-1.1-beta.jar"/>
       </fileset>
   </path>
   <taskdef resource="axis-tasks.properties"
classpathref="axis.classpath" />

   <target name="wsdl2java" description="wsdl2java">
       <axis-wsdl2java output="/tmp/java" all="true" url="/tmp/wsdl/
**" >
       </axis-wsdl2java>
   </target>
Arne Vajhøj - 19 May 2007 02:32 GMT
> I'm fairly new to using the ant build environment, so I'm sure I'm
> asking a silly question but here goes anyway.
[quoted text clipped - 7 lines]
> I've already tried using "*".  Heres what my build file looks like at
> the moment:

>     <target name="wsdl2java" description="wsdl2java">
>         <axis-wsdl2java output="/tmp/java" all="true" url="/tmp/wsdl/
> **" >
>         </axis-wsdl2java>
>     </target>

It is not standard for URL's to supporrt wildcards.

You could try the for task in ant-contrib:
  http://ant-contrib.sourceforge.net/tasks/tasks/for.html
as a workaround.

Arne


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.