-
1. Re: Custom project templates
dgolovin Apr 4, 2010 2:42 AM (in response to jorgelojam)Just add your templates inside org.jboss.tools.common.projecttemplates_3.1.0.*.jar archive and next start on clean workspace will do the trick. Another solution is unpack your templates into your workspace under ".metadata/.plugins/org.jboss.tools.common.projecttemplates" folder.
It is now unsupported functionality and that's why you cannot control it using Preferences dialog.
-
2. Re: Custom project templates
jorgelojam Apr 5, 2010 3:57 PM (in response to dgolovin)Hi Denis, thanks for your help
But I added my custom template into org.jboss.tools.common.projecttemplates_3.1.0.v201003050540R-H56-GA.jar; but when I start eclipse with -clean option or delete workspace to force to create other, do not works; the Web Developer perspective do not show me.
Also I copied the files into folder workspace/.metadata/.plugins/org.jboss.tools.common.projecttemplates an restart the eclipse but I do not show my templates when I tried to create a JSF project.
I do not know if compile the source of JBossTools with the templates added works how I need ??
-
3. Re: Custom project templates
dgolovin Apr 6, 2010 3:46 PM (in response to jorgelojam)Jorge Loja wrote:
But I added my custom template into org.jboss.tools.common.projecttemplates_3.1.0.v201003050540R-H56-GA.jar; but when I start eclipse with -clean option or delete workspace to force to create other, do not works; the Web Developer perspective do not show me.
That's probably because you have problems in your templates version, do you have any exceptions in Error Log View?
Jorge Loja wrote:
I do not know if compile the source of JBossTools with the templates added works how I need ??
You don't need to compile anything to get it work. Lets do that again from scratch step by step.
Jorge Loja wrote:
I am trying to update from JBoss Tools 3.0 to JBoss Tools 3.1 to uses JSF 2.0 support; but I have some problems because I have some custom projects templates that we use in my work; with JBoss Tools 3.0 install some custom project templates was easy I only need to copy and modify some files to org.jboss.tools.common.projecttemplates_XXXXXX into plugins folder of eclipse; in the JBoss Tools 3.1 I cannot do it because there is not the folder I found that all is bundle into JAR.What kind of template files did you copy? What files were modified?
You just need to do the same modifications in project.templates bundle archive and next start your templates should be available in eclipse.
-
4. Re: Custom project templates
jorgelojam Jun 20, 2010 9:20 PM (in response to dgolovin)Hi, I need modify JSFVersions.xml and add something like this:
<version displayName="JSF 1.2 with Facelets and RichFaces" servlet-version="2.5">
<projectTempl location="./jsf-1.2-facelets-richfaces"/>
<refLib type="servlet" location="../servlet" />
<lib location="../lib/jsf-1.2-facelets-richfaces" type="core"/>
</version>But when the IDE startup the lines that I added are erased from file.
-
5. Re: Custom project templates
scabanovich Jun 21, 2010 6:42 AM (in response to jorgelojam)You have to modify JSFVersions.xml inside org.jboss.tools.common.projecttemplates_3.1.0.*.jar.
In earlier versions, when plugin org.jboss.tools.common.projecttemplates was not jarred, in copying its content, only old files under '.metadata/.plugins/org.jboss.tools.common.projecttemplates' were rewritten, so that it was enough to modify JSFVersions.xml at destination. Now, in unpacking jar, it seems that entry's modification time is not taken into account and file is always overwritten. I think that is a bug to be fixed. So please use the way around I suggested.