Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'doc/org.eclipse.jet.doc/references/taglibs/javaTags/resourceTag.html')
-rw-r--r--doc/org.eclipse.jet.doc/references/taglibs/javaTags/resourceTag.html27
1 files changed, 17 insertions, 10 deletions
diff --git a/doc/org.eclipse.jet.doc/references/taglibs/javaTags/resourceTag.html b/doc/org.eclipse.jet.doc/references/taglibs/javaTags/resourceTag.html
index 1a22a64..b0c152e 100644
--- a/doc/org.eclipse.jet.doc/references/taglibs/javaTags/resourceTag.html
+++ b/doc/org.eclipse.jet.doc/references/taglibs/javaTags/resourceTag.html
@@ -38,7 +38,6 @@
</TR>
</TBODY>
</TABLE>
-<exists node="tag/attribute use='required'">
<HR>
<TABLE border="1" width="100%">
<TBODY>
@@ -50,11 +49,10 @@
</TR>
<TR>
<TD width="10%">template</TD>
- <TD>TODO Define description of template</TD>
+ <TD><BR> <BR> A project-relative path of a JET template to execute. The template provides the resource file's contents.<BR> <BR> A project-relative path of a JET template to execute. The template provides the resource file's contents.<BR> </TD>
</TR>
</TBODY>
</TABLE>
-</exists>
<HR>
<TABLE border="1" width="100%">
<TBODY>
@@ -63,23 +61,23 @@
<TR>
<TR>
<TD width="10%">package</TD>
- <TD></TD>
+ <TD><BR> The name of the java package. If not specified, then the name of the containing 'java:package' tag is used, otherwise, the default package is used.<BR> </TD>
</TR>
<TR>
<TD width="10%">srcFolder</TD>
- <TD></TD>
+ <TD><BR> The a path of source folder. If a relative path, this relative to any containing 'ws:project' or 'ws:folder' tags. If absolute, it is treated as a workspace relative path. If omitted, the first source folder of the containing project is used.<BR> </TD>
</TR>
<TR>
<TD width="10%">replace</TD>
- <TD>TODO Define description of replace</TD>
+ <TD><BR> A boolean ('true' or 'false') value. If 'true', the tag will overwrite an existing file, otherwise it will not. If omitted, a value of 'true' is assumed.<BR> </TD>
</TR>
<TR>
<TD width="10%">encoding</TD>
- <TD>TODO Define description of encoding</TD>
+ <TD><BR> The character encoding of the file. If omitted, then the Eclipse workspace determines the encoding. If provided, then the encoding is changed to the specified value. A value of '#default' restores the encoding of the file to the workspace determined default.<BR> </TD>
</TR>
<TR>
<TD width="10%">derived</TD>
- <TD>TODO Define description of derived</TD>
+ <TD><BR> A boolean value ('true' or 'false') determining the value of the workspace 'derived' attribute for the file. If omitted, a value of 'false' is assumed.<BR> </TD>
</TR>
</TBODY>
</TABLE>
@@ -92,8 +90,17 @@
<TD width="10%"></TD>
<TD><SPAN style="font-family: monospace">
<!-- Begin resource example -->
-
- &lt;java:resource name=&quot;<I>value</I>&quot; template=&quot;<I>value</I>&quot;/&gt;<br>
+ &lt;%-- create resource Messages.properties in package org.example in source folder myProject/src --%><BR>
+ &lt;java:resource name=&quot;Messages.properties&quot; package="org.example" srcFolder="myProject/src" template=&quot;myprops.jet&quot;/&gt;<br><BR>
+
+ &lt;%-- resource Messages.properties in package org.example in source folder myProject/src --%><BR>
+ &lt;ws:project name="myProject"&gt;<BR>
+ &nbsp;&nbsp;&lt;ws:folder path=&quot;src&quot;&gt;<BR>
+ &nbsp;&nbsp;&nbsp;&nbsp;&lt;java:package name="org.example"&gt;<BR>
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;java:resource name="Messages.properties" template="myprops.jet"/&gt;<BR>
+ &nbsp;&nbsp;&nbsp;&nbsp;&lt;/java:package&gt;<BR>
+ &nbsp;&nbsp;&lt;/ws:folder&gt;<BR>
+ &lt;/ws:project&gt;<BR>
<!-- End resource example -->
</SPAN></TD>
</TR>

Back to the top