You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Buckland, Ramon" <ra...@csam.com> on 2004/01/21 07:16:45 UTC

classname from class filename

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.

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

Re: classname from class filename

Posted by Matt Benson <gu...@yahoo.com>.
--- "Buckland, Ramon" <ra...@csam.com> wrote:
> 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

You might have a look at the package and unpackage
mappers.

-Matt


__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org