Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
classname from class filename

classname from class filename

2004-01-21       - By Buckland, Ramon
Reply:     1     2     3  

Hi All,

Besides using <propertyregex ../> from ant-contrib
is there another way to convert a
class filename (full path /path/to/com/my/package/SomeClass.class)
to a class name ?
com.my.package.SomeClass

My "ultimate goal" is to run the java2wsdl task against all my soap
classes in /path/to/com/my/package/soap/

Deploy them to the axis service ..

anyone got a good method for this ?
my current idea is..

<target ...>
  <foreach task="do-wsdl2java"/>
</target>

<target name="do-wsdl2java" ...>
  <!-- perform some regexp on the class filename to get all the bits
       i need to run the wsdltask -->
  <java2wsdl ...>
</target>
     
 
regards
ramon

==============================================================================
- NOTICE -

This message may contain confidential, proprietary or legally privileged
information and is intended only for the use of the addressee named above.
No confidentiality or privilege is waived or lost by any mistransmission.
If you are not the intended recipient of this message you are hereby
notified that you must not use, disseminate, copy it in any form or take
any action in reliance on it.  If you have received this message in error
please delete it and any copies of it and notify CREDIT SUISSE ASSET
MANAGEMENT
immediately.

Any views expressed in this message are those of the individual sender,
except where the message specifically states otherwise and the sender is
authorized to state them to be the views of CREDIT SUISSE ASSET MANAGEMENT.

CREDIT SUISSE GROUP, CREDIT SUISSE FIRST BOSTON, and each legal entity in
the CREDIT SUISSE FIRST BOSTON or CREDIT SUISSE ASSET MANAGEMENT  business
units of CREDIT SUISSE FIRST BOSTON reserve the right to monitor all e-mail
communications through its networks.

==============================================================================

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.