Yeah -- it's at the very bottom of the custom template wiki page:
"In addition to variables inside of Velocity templates, you can also
use template inputs in folder names. However, because $ is not allowed
on some filesystems, we instead surround the variable names with
"_" (for instance $someVariable would be __someVariable_ in the
filename or path). As an example, the Wonder Application template has
an input named "basePackage" (of type Package), which creates a magic
variable named "basePackage_folder" (where the dots are turned into
slashes), and the Source folder on the filesystem is named "Wonder
Application/Sources/_basePackage_folder_"."
On Apr 10, 2009, at 9:57 AM, David Avendasora wrote:
>
> On Apr 10, 2009, at 10:17 AM, Mike Schrag wrote:
>
>> maybe check .project ... pretty sure that's all it takes though ...
>
> Yep, there was info there about the builder, so my template can now
> automatically create the builder too! Thanks!!!
>
> One last question:
>
> Can you use a variable in a file name? I'd like to include the
> project name in the name of the builder. I've tried using the syntax
> similar to how the package folders are created, but that doesn't
> seem to work for files.
>
> Dave
>
>
>>
>> On Apr 10, 2009, at 4:39 AM, David Avendasora wrote:
>>
>>> I tried that. It didn't show up under the builder tab of the
>>> project properties. Is there something written to the workspace
>>> properties too?
>>>
>>> I just created a builder that worked, then copied that folder out
>>> of the project and then removed the builder. I then moved the copy
>>> back in, but the builder didn't show back up, even after a restart
>>> of Eclipse.
>>>
>>> Dave
>>>
>>> On Apr 9, 2009, at 7:34 PM, Mike Schrag wrote:
>>>
>>>> If you're just using existing builders, they're just defined in
>>>> an xml file inside the .externalBuildSomething folder in your
>>>> project, which you can include in your template.
>>>>
>>>> On Apr 9, 2009, at 12:51 PM, David Avendasora wrote:
>>>>
>>>>> Okay, continuing in this thread, I need a special builder
>>>>> configured for a Java Client WebStart project because WOLips's
>>>>> incremental builder doesn't copy the client-side jars into
>>>>> WebServerResources/Java[1], grab the client app launch
>>>>> scripts[2] or generate and copy client classpath files[3] as it
>>>>> should.
>>>>>
>>>>> When you setup a new builder for the project, Eclipse creates
>>>>> some files in the project, which I can easily reproduce in the
>>>>> template and make correct based on the project name and such,
>>>>> but having these files does not trigger the builder to actually
>>>>> be added to the project. As far as I can tell, it has to be done
>>>>> through the project Properties -> Builders GUI after the project
>>>>> is created.
>>>>>
>>>>> Adding builders is also useful for triggering test cases to run
>>>>> at build-time.
>>>>>
>>>>> Is there any way to make a project template setup the builders?
>>>>>
>>>>> Thanks!
>>>>>
>>>>> Dave
>>>>>
>>>>> 1: http://issues.objectstyle.org/jira/browse/WOL-955
>>>>> 2: http://issues.objectstyle.org/jira/browse/WOL-957
>>>>> 3: http://issues.objectstyle.org/jira/browse/WOL-956
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>
>>
>>
>>
>
This archive was generated by hypermail 2.0.0 : Fri Apr 10 2009 - 23:34:02 EDT