On Thu, 2003-07-03 at 21:45, [EMAIL PROTECTED] wrote:
> I'm working with XDoclet creating my own templates.
> I got a problem:
>
> Let's suppose I'm generating a file for the class:
>
> com.test.TestClass.java
>
> I set the destination file for:
>
> destDir="C:\test"
>
> and
>
> destinationFile="test{0}.txt"
>
> The result is a file in:
>
> C:\test\com\test\testTestClass.txt
>
>
> How can I set it not to putting the package com.test in the generated file. for
> example, I'd like to have the txt file at another path like:
>
> C:\test\otherPath\testTestClass.txt
If you use a {0} in the file name then by default it puts it under the
same directory/package hierarchy as the original class. Otherwise there
might be clashes between e.g. mypackage1.SomeClass and
mypackage2.SomeClass overwriting each others generated files. You can
alter this behaviour using the packageSubstitution parameter to specify
alternative packages. In your case, try
<packageSubstitution packages="com.test" substituteWith="otherPath"/>
Andrew.
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user