Got it. I have the .java file in the filesystem, so no problem there. I will probably write a small task that does exactly this, since I am not that familiar with scripting stuff.
thanks anyway. > Hmmm, I guess a mapper isn't the right solution then since you aren't > starting with an actual "file" to begin with - sorry, wasn't thinking > it through on my first reply. I'm assuming that the .class file is in > > the filesystem and not in a JAR though, right? Otherwise you'll want > to use <unjar> first and then perhaps <script> to do the string > replacements. > > Erik > > > On Thursday, January 2, 2003, at 08:44 AM, Markus M. May wrote: > > Hmm, the package mapper does the stuff in the wrong direction. so what > > > i > > need is basically a mapper, which replaces all '.' in the FQN through > > > '/' and > > also add '.java' to the FQN. I guess I have to write my own mapper. > > > > Can you give me any hints on how to do something like this? I looked > > > already > > in your code, but the problem is, that I cannot use '*' in my stuff. > > > So what > > I really want to do is the following: > > > > <copy file="org.javafreedom.Classfile" > > to="${another.src.dir}/org/javafreedom/Classfile"/>. Is this then > > possible using a mapper? > > > > regards, > > > > markus > > > >> The "package" mapper might do the trick for you - I created it for > use > >> > >> with <junit> XML formatter results mapping, but it might do what you > >> need. > >> > >> You wouldn't need to write your own task, rather at the worst case > >> write your own mapper implementation (its pluggable) or use a > >> sprinkling of <script> to replace dots with slashes. > >> > >> Erik > >> > >> On Thursday, January 2, 2003, at 06:40 AM, Markus M. May wrote: > >>> Hello, > >>> I have the FQN of a class and would like to copy this class using > the > >>> standard mechanism of ANT. It seems that it is not possible without > a > >> > >>> mapper. Can I > >>> use a mapper, or do i have to write my own task? > >>> > >>> Greets > >>> > >>> Markus > >>> > >>> -- > >>> +++ GMX - Mail, Messaging & more http://www.gmx.net +++ > >>> NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen! > >>> > >>> > >>> -- > >>> To unsubscribe, e-mail: > >>> <mailto:[EMAIL PROTECTED]> > >>> For additional commands, e-mail: > >>> <mailto:[EMAIL PROTECTED]> > >>> > >>> > >> > >> > >> -- > >> To unsubscribe, e-mail: > >> <mailto:[EMAIL PROTECTED]> > >> For additional commands, e-mail: > >> <mailto:[EMAIL PROTECTED]> > >> > > > > -- > > +++ GMX - Mail, Messaging & more http://www.gmx.net +++ > > NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen! > > > > > > -- > > To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen! -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>