Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

wscompile gives problem

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

When I run the build.xml file , it gives an error stating:

BUILD FAILED
C:\workspace\Work\build.xml:46: Problem: failed to create task or type wscompile
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.


Why doesn't the core wscompile task get recognised???
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
You need to define the wscompile task in your Ant script. One way to do it is by using the wscompile command:

An alaternative is to use the wscompile task that comes with, for instance, GlassFish. The example below is for wsgen, but wscompile is used in a similar fashion:

Best wishes!
 
Sachet Varma
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are the best help Ivan!
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic