On 21-jun-2007, at 23:54, Mike Schrag wrote:
> I just committed the new wizard "WO Project from Template" and it
> should be in tonight's build.
>
> I believe we should ultimately replace all of the current WO
> templates with this, but it needs to be extended to be able to load
> templates from inside the jar, or maybe it should unzip predefined
> templates in your ~/Library folder you. Here's the rundown on how
> it works -- if someone wants to make nice pretty wiki docs for
> this, that would be handy:
>
I'd love to, if I would understand the basic file structure of a
WOLips project. I had a look at the tutorials on Confluence, the file
structure is different there. EG: src instead of Sources. Is the
Wonder layout the way forward?
If that is so, I can start amending the screenshots over there, to
make them come together with the current state of affairs.
> You can now build custom project template folders in "~/Library/
> Application Support/WOLips/Project Templates". As an example, you
> can make a folder called "Wonder Application," and inside, build an
> entire project -- folders, files, whatever. These files will all
> be parsed as velocity templates, so you can drop in variables or
> conditionals wherever you need.
>
It might be an idea to not only parse ~/Library/Application Support/
WOLips/Project Templates, but also /Library/Application Support/
WOLips/Project Templates and /Network//Library/Application Support/
WOLips/Project Templates, and perhaps even /System//Library/
Application Support/WOLips/Project Templates...
> This is the simplest way to do things. To be fancier, you can also
> create a template.xml in the "Wonder Application" folder like:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <template name = "Wonder Application">
> <inputs>
> <input name = "useProjects" type = "Boolean">
> <question>Link to Eclipse Projects?</question>
> <default>false</default>
> </input>
> </inputs>
> </template>
>
> You can declare an arbitrary set of inputs, which will become text
> fields, spinners, and checkboxes in the project creation wizard
> (Boolean, String, and Integer types are supported right now). The
> input name matches the velocity variable names you use in your
> templates. The template name is the name that is displayed in the
> chooser in the New Project wizard, though it will default to the
> folder name if you don't provide a template.xml.
>
> I'm attaching an example of Wonder Application as a project
> template -- just unzip in your Project Templates folder:
> <Wonder Application.zip>
>
> Look in .classpath in that template to see the use of the
> "useProjects" variable defined in template.xml.
>
> Here's how it looks in WOLips. The new "WO Project from Template"
> option:
> <Picture 1.png>
>
> Then your available templates appear here:
> <Picture 2.png>
>
> The input options from your template.xml then appear:
> <Picture 3.png>
>
> And then the usual project stuff:
> <Picture 4.png>
>
> ms
Regards,
Johan Henselmans
http://www.netsense.nl
Tel: +31-20-6267538
Fax: +31-20-6273852
This archive was generated by hypermail 2.0.0 : Sun Jun 24 2007 - 10:51:11 EDT