Seam SVN: r9254 - in trunk/src: main/org/jboss/seam/init and 1 other directory.
by seam-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-10-10 14:14:55 -0400 (Fri, 10 Oct 2008)
New Revision: 9254
Modified:
trunk/src/debug/org/jboss/seam/debug/hot/HotDeployFilter.java
trunk/src/main/org/jboss/seam/init/Initialization.java
Log:
JBSEAM-3491
Modified: trunk/src/debug/org/jboss/seam/debug/hot/HotDeployFilter.java
===================================================================
--- trunk/src/debug/org/jboss/seam/debug/hot/HotDeployFilter.java 2008-10-10 10:26:39 UTC (rev 9253)
+++ trunk/src/debug/org/jboss/seam/debug/hot/HotDeployFilter.java 2008-10-10 18:14:55 UTC (rev 9254)
@@ -39,7 +39,14 @@
Init init = (Init) getServletContext().getAttribute( Seam.getComponentName(Init.class) );
if ( init!=null)
{
- new Initialization( getServletContext() ).redeploy( (HttpServletRequest) request );
+ try
+ {
+ new Initialization( getServletContext() ).redeploy( (HttpServletRequest) request );
+ }
+ catch (InterruptedException e)
+ {
+ log.warn("Unable to redeploy, please try again");
+ }
}
chain.doFilter(request, response);
}
Modified: trunk/src/main/org/jboss/seam/init/Initialization.java
===================================================================
--- trunk/src/main/org/jboss/seam/init/Initialization.java 2008-10-10 10:26:39 UTC (rev 9253)
+++ trunk/src/main/org/jboss/seam/init/Initialization.java 2008-10-10 18:14:55 UTC (rev 9254)
@@ -22,6 +22,8 @@
import java.util.Set;
import java.util.StringTokenizer;
import java.util.TreeSet;
+import java.util.concurrent.TimeUnit;
+import java.util.concurrent.locks.ReentrantLock;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
@@ -723,56 +725,66 @@
return this;
}
- public Initialization redeploy(HttpServletRequest request)
+ public void redeploy(HttpServletRequest request) throws InterruptedException
{
- ServletLifecycle.beginReinitialization(request);
- hotDeploymentStrategy = createHotDeployment(Thread.currentThread().getContextClassLoader());
- if (hotDeploymentStrategy.isEnabled())
+ ReentrantLock lock = new ReentrantLock();
+ if (lock.tryLock(500, TimeUnit.MILLISECONDS))
{
- hotDeploymentStrategy.scan();
- Init init = Init.instance();
-
- if (init.getTimestamp() < hotDeploymentStrategy.getTimestamp())
+ try
{
- log.info("redeploying");
- Seam.clearComponentNameCache();
- for ( String name: init.getHotDeployableComponents() )
+ ServletLifecycle.beginReinitialization(request);
+ hotDeploymentStrategy = createHotDeployment(Thread.currentThread().getContextClassLoader());
+ if (hotDeploymentStrategy.isEnabled())
{
- Component component = Component.forName(name);
- if (component!=null)
+ hotDeploymentStrategy.scan();
+ Init init = Init.instance();
+
+ if (init.getTimestamp() < hotDeploymentStrategy.getTimestamp())
{
- ScopeType scope = component.getScope();
- if ( scope!=ScopeType.STATELESS && scope.isContextActive() )
+ log.info("redeploying");
+ Seam.clearComponentNameCache();
+ for ( String name: init.getHotDeployableComponents() )
{
- scope.getContext().remove(name);
+ Component component = Component.forName(name);
+ if (component!=null)
+ {
+ ScopeType scope = component.getScope();
+ if ( scope!=ScopeType.STATELESS && scope.isContextActive() )
+ {
+ scope.getContext().remove(name);
+ }
+ init.removeObserverMethods(component);
+ }
+ Contexts.getApplicationContext().remove(name + COMPONENT_SUFFIX);
}
- init.removeObserverMethods(component);
+
+ if (hotDeploymentStrategy.isHotDeployClassLoaderEnabled())
+ {
+ installHotDeployableComponents();
+ }
+ Contexts.getEventContext().set(HotDeploymentStrategy.NAME, hotDeploymentStrategy);
+ init.setTimestamp( System.currentTimeMillis() );
+ installComponents(init);
+ log.info("done redeploying");
}
- Contexts.getApplicationContext().remove(name + COMPONENT_SUFFIX);
+
+ WarRootDeploymentStrategy warRootDeploymentStrategy = new WarRootDeploymentStrategy(Thread.currentThread().getContextClassLoader(), warRoot);
+ warRootDeploymentStrategy.scan();
+ Contexts.getEventContext().set(WarRootDeploymentStrategy.NAME, warRootDeploymentStrategy);
+ Pages pages = Pages.instance();
+ if (pages!= null) {
+ pages.initialize();
+ }
+
+ Contexts.getApplicationContext().remove(Seam.getComponentName(Exceptions.class));
}
-
- if (hotDeploymentStrategy.isHotDeployClassLoaderEnabled())
- {
- installHotDeployableComponents();
- }
- Contexts.getEventContext().set(HotDeploymentStrategy.NAME, hotDeploymentStrategy);
- init.setTimestamp( System.currentTimeMillis() );
- installComponents(init);
- log.info("done redeploying");
+ ServletLifecycle.endReinitialization();
}
-
- WarRootDeploymentStrategy warRootDeploymentStrategy = new WarRootDeploymentStrategy(Thread.currentThread().getContextClassLoader(), warRoot);
- warRootDeploymentStrategy.scan();
- Contexts.getEventContext().set(WarRootDeploymentStrategy.NAME, warRootDeploymentStrategy);
- Pages pages = Pages.instance();
- if (pages!= null) {
- pages.initialize();
+ finally
+ {
+ lock.unlock();
}
-
- Contexts.getApplicationContext().remove(Seam.getComponentName(Exceptions.class));
}
- ServletLifecycle.endReinitialization();
- return this;
}
private void installHotDeployableComponents()
16 years, 2 months
Seam SVN: r9253 - trunk.
by seam-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-10-10 06:26:39 -0400 (Fri, 10 Oct 2008)
New Revision: 9253
Modified:
trunk/release-process.txt
Log:
Add building translations to release process
Modified: trunk/release-process.txt
===================================================================
--- trunk/release-process.txt 2008-10-10 10:25:24 UTC (rev 9252)
+++ trunk/release-process.txt 2008-10-10 10:26:39 UTC (rev 9253)
@@ -440,7 +440,7 @@
--------------
* When ready for the release
- checkout a clean version of the tag in a new/clean directory.
- - run "ant cleanall dist > ../releaselogs/x.x.x.XX.finaldistbuild.txt"
+ - run "ant cleanall dist -Dbuild.translations=true > ../releaselogs/x.x.x.XX.finaldistbuild.txt"
- diff this to the one used for testing
* Follow instructions for sourceforge upload
16 years, 2 months
Seam SVN: r9252 - in trunk: doc/Seam_Reference_Guide/fr-FR and 1 other directory.
by seam-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-10-10 06:25:24 -0400 (Fri, 10 Oct 2008)
New Revision: 9252
Modified:
trunk/build/ci.build.xml
trunk/build/docs.pom.xml
trunk/doc/Seam_Reference_Guide/fr-FR/Annotations.po
Log:
JBSEAM-3541, French translation of Annotations. Thanks to Michael Courcy. Also, alter nightly builds to create translations
Modified: trunk/build/ci.build.xml
===================================================================
--- trunk/build/ci.build.xml 2008-10-10 09:53:58 UTC (rev 9251)
+++ trunk/build/ci.build.xml 2008-10-10 10:25:24 UTC (rev 9252)
@@ -45,7 +45,11 @@
<target name="snapshot">
<build target="cleanall" />
- <build target="dist" />
+ <build target="dist">
+ <properties>
+ <property name="build.translations" value="true" />
+ </properties>
+ </build>
<ant target="deploySeamSnapshot" antfile="${ant.file}" inheritall="false" inheritrefs="false" dir=".">
<property name="qualifier" value="-SNAPSHOT" />
@@ -77,14 +81,14 @@
<macrodef name="build">
<attribute name="target" />
- <attribute name="testngjvmargs" default="" />
+ <attribute name="testngjvmargs" default="" />
<element name="properties" optional="true" />
<sequential>
<ant antfile="${seam.dir}/build.xml" target="@{target}" inheritall="false" inheritrefs="false" dir="../">
<property name="dist.location" value="${dist.location}" />
<property name="qualifier" value="-SNAPSHOT" />
<property name="quietclean" value="true" />
- <property name="testng.jvmargs" value="@{testngjvmargs}" />
+ <property name="testng.jvmargs" value="@{testngjvmargs}" />
<property name="maven.settings.xml" value="${maven.settings.xml}" />
<properties />
</ant>
Modified: trunk/build/docs.pom.xml
===================================================================
--- trunk/build/docs.pom.xml 2008-10-10 09:53:58 UTC (rev 9251)
+++ trunk/build/docs.pom.xml 2008-10-10 10:25:24 UTC (rev 9252)
@@ -65,7 +65,7 @@
<sourceDocumentName>master.xml</sourceDocumentName>
<masterTranslation>en-US</masterTranslation>
<translations>
-
+ <translation>fr-FR</translation>
</translations>
<imageResource>
<directory>${pom.basedir}/en-US</directory>
Modified: trunk/doc/Seam_Reference_Guide/fr-FR/Annotations.po
===================================================================
--- trunk/doc/Seam_Reference_Guide/fr-FR/Annotations.po 2008-10-10 09:53:58 UTC (rev 9251)
+++ trunk/doc/Seam_Reference_Guide/fr-FR/Annotations.po 2008-10-10 10:25:24 UTC (rev 9252)
@@ -6,148 +6,121 @@
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2008-04-04 01:24+0000\n"
-"PO-Revision-Date: 2008-04-04 01:24+0000\n"
-"Last-Translator: Automatically generated\n"
+"PO-Revision-Date: 2008-10-09 22:20+0100\n"
+"Last-Translator: Michael Courcy <michael.courcy(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Poedit-Bookmarks: 204,-1,-1,-1,-1,-1,-1,-1,-1,-1\n"
#. Tag: title
#: Annotations.xml:5
#, no-c-format
msgid "Seam annotations"
-msgstr ""
+msgstr "Les annotations Seam"
#. Tag: para
#: Annotations.xml:7
#, no-c-format
-msgid ""
-"When you write a Seam application, you'll use a lot of annotations. Seam "
-"lets you use annotations to achieve a declarative style of programming. Most "
-"of the annotations you'll use are defined by the EJB 3.0 specification. The "
-"annotations for data validation are defined by the Hibernate Validator "
-"package. Finally, Seam defines its own set of annotations, which we'll "
-"describe in this chapter."
-msgstr ""
+msgid "When you write a Seam application, you'll use a lot of annotations. Seam lets you use annotations to achieve a declarative style of programming. Most of the annotations you'll use are defined by the EJB 3.0 specification. The annotations for data validation are defined by the Hibernate Validator package. Finally, Seam defines its own set of annotations, which we'll describe in this chapter."
+msgstr "Quand vous écrivez une application Seam, vous serez amené à utiliser de nombreuses annotations. Avec les annotations, Seam vous permettra de programmer de façon déclarative. La plupart des annotations que vous utiliserez appartiennent à la spécification EJB3. Les annotations pour la validation des données appartiennent au package Hibernate Validator. Enfin Seam définit lui-même son propre sous-ensemble d'annotations, que nous allons décrire dans ce chapitre. "
#. Tag: para
#: Annotations.xml:16
#, no-c-format
-msgid ""
-"All of these annotations are defined in the package <literal>org.jboss.seam."
-"annotations</literal>."
-msgstr ""
+msgid "All of these annotations are defined in the package <literal>org.jboss.seam.annotations</literal>."
+msgstr "Toutes ces annotations sont définis dans le package <literal>org.jboss.seam.annotations</literal>."
#. Tag: title
#: Annotations.xml:22
#, no-c-format
msgid "Annotations for component definition"
-msgstr ""
+msgstr "Les annotations pour la définition des composants."
#. Tag: para
#: Annotations.xml:23
#, no-c-format
-msgid ""
-"The first group of annotations lets you define a Seam component. These "
-"annotations appear on the component class."
-msgstr ""
+msgid "The first group of annotations lets you define a Seam component. These annotations appear on the component class."
+msgstr "Le premier groupe d'annotations vous permet de définir un composant Seam. Ces annotations sont déclarées au niveau de la classe."
#. Tag: literal
#: Annotations.xml:31
#, no-c-format
msgid "@Name"
-msgstr ""
+msgstr "@Name"
#. Tag: programlisting
#: Annotations.xml:34
#, no-c-format
msgid "<![CDATA[@Name(\"componentName\")]]>"
-msgstr ""
+msgstr "<![CDATA[@Name(\"componentName\")]]>"
#. Tag: para
#: Annotations.xml:35
#, no-c-format
-msgid ""
-"Defines the Seam component name for a class. This annotation is required for "
-"all Seam components."
-msgstr ""
+msgid "Defines the Seam component name for a class. This annotation is required for all Seam components."
+msgstr "Définit le nom du composant Seam pour une classe donnée. Cette annotation est obligatoire pour tout composant Seam."
#. Tag: literal
#: Annotations.xml:43
#, no-c-format
msgid "@Scope"
-msgstr ""
+msgstr "@Scope"
#. Tag: programlisting
#: Annotations.xml:46
#, no-c-format
msgid "<![CDATA[(a)Scope(ScopeType.CONVERSATION)]]>"
-msgstr ""
+msgstr "<![CDATA[(a)Scope(ScopeType.CONVERSATION)]]>"
#. Tag: para
#: Annotations.xml:47
#, no-c-format
-msgid ""
-"Defines the default context of the component. The possible values are "
-"defined by the <literal>ScopeType</literal> enumeration: <literal>EVENT, "
-"PAGE, CONVERSATION, SESSION, BUSINESS_PROCESS, APPLICATION, STATELESS</"
-"literal>."
-msgstr ""
+msgid "Defines the default context of the component. The possible values are defined by the <literal>ScopeType</literal> enumeration: <literal>EVENT, PAGE, CONVERSATION, SESSION, BUSINESS_PROCESS, APPLICATION, STATELESS</literal>."
+msgstr "Définit le scope (contexte) par défaut auquel ce composant appartient. Les valeurs qui peuvent être prises sont définies par l'énumération <literal>ScopeType</literal> : <literal>EVENT, PAGE, CONVERSATION, SESSION, BUSINESS_PROCESS, APPLICATION, STATELESS</literal>."
#. Tag: para
#: Annotations.xml:52
#, no-c-format
-msgid ""
-"When no scope is explicitly specified, the default depends upon the "
-"component type. For stateless session beans, the default is "
-"<literal>STATELESS</literal>. For entity beans and stateful session beans, "
-"the default is <literal>CONVERSATION</literal>. For JavaBeans, the default "
-"is <literal>EVENT</literal>."
-msgstr ""
+msgid "When no scope is explicitly specified, the default depends upon the component type. For stateless session beans, the default is <literal>STATELESS</literal>. For entity beans and stateful session beans, the default is <literal>CONVERSATION</literal>. For JavaBeans, the default is <literal>EVENT</literal>."
+msgstr "Quand aucun scope n'est défini, la valeur par défaut dépend du type du composant. Pour les beans session stateless, la valeur par défaut est <literal>STATELESS</literal>. Pour les beans entité et les bean session stateful la valeur par défaut est <literal>CONVERSATION</literal>. Pour les JavaBeans, la valeur par défaut est <literal>EVENT</literal>."
#. Tag: literal
#: Annotations.xml:64
#, no-c-format
msgid "@Role"
-msgstr ""
+msgstr "@Role"
#. Tag: programlisting
#: Annotations.xml:67
#, no-c-format
msgid "<![CDATA[@Role(name=\"roleName\", scope=ScopeType.SESSION)]]>"
-msgstr ""
+msgstr "<![CDATA[@Role(name=\"roleName\", scope=ScopeType.SESSION)]]>"
#. Tag: para
#: Annotations.xml:68
#, no-c-format
-msgid ""
-"Allows a Seam component to be bound to multiple contexts variables. The "
-"<literal>@Name</literal>/<literal>@Scope</literal> annotations define a "
-"\"default role\". Each <literal>@Role</literal> annotation defines an "
-"additional role."
-msgstr ""
+msgid "Allows a Seam component to be bound to multiple contexts variables. The <literal>@Name</literal>/<literal>@Scope</literal> annotations define a \"default role\". Each <literal>@Role</literal> annotation defines an additional role."
+msgstr "Permet à un composant Seam d'être lié à plusieurs variables de contexte à la fois. Les annotations <literal>@Name</literal>/<literal>@Scope</literal> définissent en quelques sorte un \"role par défaut\". Mais chaque annotation <literal>@Role</literal> permet de définir alors un rôle supplémenataire."
#. Tag: para
#: Annotations.xml:76
#, no-c-format
msgid "<literal>name</literal> — the context variable name."
-msgstr ""
+msgstr "<literal>name</literal> — Le nom de la variable dans le contexte."
#. Tag: para
#: Annotations.xml:82
#, no-c-format
-msgid ""
-"<literal>scope</literal> — the context variable scope. When no scope "
-"is explicitly specified, the default depends upon the component type, as "
-"above."
-msgstr ""
+msgid "<literal>scope</literal> — the context variable scope. When no scope is explicitly specified, the default depends upon the component type, as above."
+msgstr "<literal>scope</literal> — Le scope auquel cette variable appartient. Quand aucun scope n'est spécifié, la valeur par défaut dépend du type de composant comme décrit ci-dessus."
#. Tag: literal
#: Annotations.xml:93
#, no-c-format
msgid "@Roles"
-msgstr ""
+msgstr "@Roles"
#. Tag: programlisting
#: Annotations.xml:96
@@ -158,1569 +131,1270 @@
" @Role(name=\"currentUser\", scope=ScopeType.SESSION)\n"
" })]]>"
msgstr ""
+"<![CDATA[@Roles({\n"
+" @Role(name=\"user\", scope=ScopeType.CONVERSATION),\n"
+" @Role(name=\"currentUser\", scope=ScopeType.SESSION)\n"
+" })]]>"
#. Tag: para
#: Annotations.xml:97
#, no-c-format
msgid "Allows specification of multiple additional roles."
-msgstr ""
+msgstr "Permet de spécifier des rôles additionnels."
#. Tag: literal
#: Annotations.xml:104
#, no-c-format
msgid "@BypassInterceptors"
-msgstr ""
+msgstr "@BypassInterceptors"
#. Tag: programlisting
#: Annotations.xml:107
#, no-c-format
msgid "<![CDATA[@BypassInterceptors]]>"
-msgstr ""
+msgstr "<![CDATA[@BypassInterceptors]]>"
#. Tag: para
#: Annotations.xml:108
#, no-c-format
-msgid ""
-"Disables Seam all interceptors on a particular component or method of a "
-"component."
-msgstr ""
+msgid "Disables Seam all interceptors on a particular component or method of a component."
+msgstr "Désactive toutes interceptions de Seam sur le composant ou sur l'une de ses méthodes."
#. Tag: literal
#: Annotations.xml:116
#, no-c-format
msgid "@JndiName"
-msgstr ""
+msgstr "@JndiName"
#. Tag: programlisting
#: Annotations.xml:119
#, no-c-format
msgid "<![CDATA[@JndiName(\"my/jndi/name\")]]>"
-msgstr ""
+msgstr "<![CDATA[@JndiName(\"my/jndi/name\")]]>"
#. Tag: para
#: Annotations.xml:120
#, no-c-format
-msgid ""
-"Specifies the JNDI name that Seam will use to look up the EJB component. If "
-"no JNDI name is explicitly specified, Seam will use the JNDI pattern "
-"specified by <literal>org.jboss.seam.core.init.jndiPattern</literal>."
-msgstr ""
+msgid "Specifies the JNDI name that Seam will use to look up the EJB component. If no JNDI name is explicitly specified, Seam will use the JNDI pattern specified by <literal>org.jboss.seam.core.init.jndiPattern</literal>."
+msgstr "Spécifie le nom JNDI que Seam utilisera pour rechercher le composant EJB. Si aucun nom JNDI n'est explicitement spécifié, Seam utilisera le pattern JNDI spécifié par <literal>org.jboss.seam.core.init.jndiPattern</literal>."
#. Tag: literal
#: Annotations.xml:130
#, no-c-format
msgid "@Conversational"
-msgstr ""
+msgstr "@Conversational"
#. Tag: programlisting
#: Annotations.xml:133
#, no-c-format
msgid "<![CDATA[@Conversational]]>"
-msgstr ""
+msgstr "<![CDATA[@Conversational]]>"
#. Tag: para
#: Annotations.xml:134
#, no-c-format
-msgid ""
-"Specifies that a conversation scope component is conversational, meaning "
-"that no method of the component may be called unless a long-running "
-"conversation is active."
-msgstr ""
+msgid "Specifies that a conversation scope component is conversational, meaning that no method of the component may be called unless a long-running conversation is active."
+msgstr "Spécifie que le scope du composant est conversationnel, cela signifie qu'aucune méthode du composant ne peut être invoquée à moins qu'une conversation longue soit active. "
#. Tag: literal
#: Annotations.xml:143
#, no-c-format
msgid "@PerNestedConversation"
-msgstr ""
+msgstr "@PerNestedConversation"
#. Tag: programlisting
#: Annotations.xml:146
#, no-c-format
msgid "<![CDATA[@PerNestedConversation]]>"
-msgstr ""
+msgstr "<![CDATA[@PerNestedConversation]]>"
#. Tag: para
#: Annotations.xml:147
#, no-c-format
-msgid ""
-"Limits the scope of a CONVERSATION-scoped component to just the parent "
-"conversation in which it was instantiated. The component instance will not "
-"be visible to nested child conversations, which will get their own instance."
-msgstr ""
+msgid "Limits the scope of a CONVERSATION-scoped component to just the parent conversation in which it was instantiated. The component instance will not be visible to nested child conversations, which will get their own instance."
+msgstr "Limite la visibilité du composant au scope de la conversation dans laquelle il a été créé. Cette instance du composant ne sera pas visible par les conversations enfants, qui obtiendront alors leur propre instance de ce composant."
#. Tag: para
#: Annotations.xml:153
#, no-c-format
-msgid ""
-"Warning: this is ill-defined, since it implies that a component will be "
-"visible for some part of a request cycle, and invisible after that. It is "
-"not recommended that applications use this feature!"
-msgstr ""
+msgid "Warning: this is ill-defined, since it implies that a component will be visible for some part of a request cycle, and invisible after that. It is not recommended that applications use this feature!"
+msgstr "Attention, cette définition présente ses propres limites, car elle implique qu'un composant sera visible depuis certaines parties de la requète, mais plus après l'éxécution de ces dernières. Nous ne recommandons donc pas l'utilisation de cette fonctionnalité. "
#. Tag: literal
#: Annotations.xml:163
#, no-c-format
msgid "@Startup"
-msgstr ""
+msgstr "@Startup"
#. Tag: programlisting
#: Annotations.xml:166
#, no-c-format
-msgid ""
-"<![CDATA[@Scope(APPLICATION) @Startup(depends=\"org.jboss.seam.bpm.jbpm\")]]>"
-msgstr ""
+msgid "<![CDATA[@Scope(APPLICATION) @Startup(depends=\"org.jboss.seam.bpm.jbpm\")]]>"
+msgstr "<![CDATA[@Scope(APPLICATION) @Startup(depends=\"org.jboss.seam.bpm.jbpm\")]]>"
#. Tag: para
#: Annotations.xml:167
#, no-c-format
-msgid ""
-"Specifies that an application scope component is started immediately at "
-"initialization time. This is mainly used for certain built-in components "
-"that bootstrap critical infrastructure such as JNDI, datasources, etc."
-msgstr ""
+msgid "Specifies that an application scope component is started immediately at initialization time. This is mainly used for certain built-in components that bootstrap critical infrastructure such as JNDI, datasources, etc."
+msgstr "Spécifie qu'un composant ayant un scope application est démarré immédiatement pendant la phase d'initialisation de l'application. C'est principalement utilisé pour les composant natif de Seam qui ont des rôles structurels critiques comme jNDI, Datasources, etc."
#. Tag: programlisting
#: Annotations.xml:173
#, no-c-format
msgid "<![CDATA[@Scope(SESSION) @Startup]]>"
-msgstr ""
+msgstr "<![CDATA[@Scope(SESSION) @Startup]]>"
#. Tag: para
#: Annotations.xml:174
#, no-c-format
-msgid ""
-"Specifies that a session scope component is started immediately at session "
-"creation time."
-msgstr ""
+msgid "Specifies that a session scope component is started immediately at session creation time."
+msgstr "Spécifie qu'un composant ayant un scope session est démarré immédiatemnt durant la phase de création de la session."
#. Tag: para
#: Annotations.xml:180
#, no-c-format
-msgid ""
-"<literal>depends</literal> — specifies that the named components must "
-"be started first, if they are installed."
-msgstr ""
+msgid "<literal>depends</literal> — specifies that the named components must be started first, if they are installed."
+msgstr "<literal>depends</literal> — spécifie que les composants nommés doivent être démarrés en premier, si ils sont installés."
#. Tag: literal
#: Annotations.xml:191
#, no-c-format
msgid "@Install"
-msgstr ""
+msgstr "@Install"
#. Tag: programlisting
#: Annotations.xml:194
#, no-c-format
msgid "<![CDATA[@Install(false)]]>"
-msgstr ""
+msgstr "<![CDATA[@Install(false)]]>"
#. Tag: para
#: Annotations.xml:195
#, no-c-format
-msgid ""
-"Specifies whether or not a component should be installed by default. The "
-"lack of an <literal>@Install</literal> annotation indicates a component "
-"should be installed."
-msgstr ""
+msgid "Specifies whether or not a component should be installed by default. The lack of an <literal>@Install</literal> annotation indicates a component should be installed."
+msgstr "Spécifie si un composant doit ou ne doit pas par défaut être installé . L'absence de l'annotation <literal>@Install</literal> indique implicitement qie le composant doit être installé."
#. Tag: programlisting
#: Annotations.xml:200
#, no-c-format
msgid "<![CDATA[@Install(dependencies=\"org.jboss.seam.bpm.jbpm\")]]>"
-msgstr ""
+msgstr "<![CDATA[@Install(dependencies=\"org.jboss.seam.bpm.jbpm\")]]>"
#. Tag: para
#: Annotations.xml:201
#, no-c-format
-msgid ""
-"Specifies that a component should only be stalled if the components listed "
-"as dependencies are also installed."
-msgstr ""
+msgid "Specifies that a component should only be stalled if the components listed as dependencies are also installed."
+msgstr "Spécifie qu'un composant ne doit être installé que si les composants listés comme des dépendances sont aussi installés. "
#. Tag: programlisting
#: Annotations.xml:205
#, no-c-format
msgid "<![CDATA[(a)Install(genericDependencies=ManagedQueueSender.class)]]>"
-msgstr ""
+msgstr "<![CDATA[(a)Install(genericDependencies=ManagedQueueSender.class)]]>"
#. Tag: para
#: Annotations.xml:206
#, no-c-format
-msgid ""
-"Specifies that a component should only be installed if a component that is "
-"implemented by a certain class is installed. This is useful when the "
-"dependency doesn't have a single well-known name."
-msgstr ""
+msgid "Specifies that a component should only be installed if a component that is implemented by a certain class is installed. This is useful when the dependency doesn't have a single well-known name."
+msgstr "Spécifie qu'un composant ne doit être installé que si des composants implémentés par certaines classes sont aussi installés. Ceci est utile quand on ne dispose pas des noms précis des composants présents dans l'application, mais que l'on connait leur classe."
#. Tag: programlisting
#: Annotations.xml:212
#, no-c-format
msgid "<![CDATA[@Install(classDependencies=\"org.hibernate.Session\")]]>"
-msgstr ""
+msgstr "<![CDATA[@Install(classDependencies=\"org.hibernate.Session\")]]>"
#. Tag: para
#: Annotations.xml:213
#, no-c-format
-msgid ""
-"Specifies that a component should only be installed if the named class is in "
-"the classpath."
-msgstr ""
+msgid "Specifies that a component should only be installed if the named class is in the classpath."
+msgstr "Spécifice qu'un composant de doit être installé que si la classe nommée est présente dans le classpath."
#. Tag: programlisting
#: Annotations.xml:217
#, no-c-format
msgid "<![CDATA[@Install(precedence=BUILT_IN)]]>"
-msgstr ""
+msgstr "<![CDATA[@Install(precedence=BUILT_IN)]]>"
#. Tag: para
#: Annotations.xml:218
#, no-c-format
-msgid ""
-"Specifies the precedence of the component. If multiple components with the "
-"same name exist, the one with the higher precedence will be installed. The "
-"defined precendence values are (in ascending order):"
-msgstr ""
+msgid "Specifies the precedence of the component. If multiple components with the same name exist, the one with the higher precedence will be installed. The defined precendence values are (in ascending order):"
+msgstr "Spécifie la précédence du composant. Si plusieurs composants existe avec le même nom, c'est celui qui aura la précédence la plus élevée qui sera installé. Les différentes valeurs de précédences sont (dans l'ordre croissant) :"
#. Tag: para
#: Annotations.xml:227
#, no-c-format
-msgid ""
-"<literal>BUILT_IN</literal> — Precedence of all built-in Seam "
-"components"
-msgstr ""
+msgid "<literal>BUILT_IN</literal> — Precedence of all built-in Seam components"
+msgstr "<literal>BUILT_IN</literal> — Précédence attribuée à tout les composants appartenant à Seam"
#. Tag: para
#: Annotations.xml:233
#, no-c-format
-msgid ""
-"<literal>FRAMEWORK</literal> — Precedence to use for components of "
-"frameworks which extend Seam"
-msgstr ""
+msgid "<literal>FRAMEWORK</literal> — Precedence to use for components of frameworks which extend Seam"
+msgstr "<literal>FRAMEWORK</literal> — Précédence attribuée à tous les coposants issus des frameworks qui étendent Seam."
#. Tag: para
#: Annotations.xml:239
#, no-c-format
-msgid ""
-"<literal>APPLICATION</literal> — Predence of application components "
-"(the default precedence)"
-msgstr ""
+msgid "<literal>APPLICATION</literal> — Predence of application components (the default precedence)"
+msgstr "<literal>APPLICATION</literal> — Précédence attribuée à tous les composants issus de l'application (C'est la précédence par défaut)"
#. Tag: para
#: Annotations.xml:245
#, no-c-format
-msgid ""
-"<literal>DEPLOYMENT</literal> — Precedence to use for components which "
-"override application components in a particular deployment"
-msgstr ""
+msgid "<literal>DEPLOYMENT</literal> — Precedence to use for components which override application components in a particular deployment"
+msgstr "<literal>DEPLOYMENT</literal> — Précedence attribuée à tous les composants qui surdéfinissent les composants application dans un scénario de déploiement particulier."
#. Tag: para
#: Annotations.xml:252
#, no-c-format
-msgid ""
-"<literal>MOCK</literal> — Precedence for mock objects used in testing"
-msgstr ""
+msgid "<literal>MOCK</literal> — Precedence for mock objects used in testing"
+msgstr "<literal>MOCK</literal> — Précédence atribuée pour les objets \"Mock\" utilisés pendant les tests."
#. Tag: literal
#: Annotations.xml:263
#, no-c-format
msgid "@Synchronized"
-msgstr ""
+msgstr "@Synchronized"
#. Tag: programlisting
#: Annotations.xml:266
#, no-c-format
msgid "<![CDATA[@Synchronized(timeout=1000)]]>"
-msgstr ""
+msgstr "<![CDATA[@Synchronized(timeout=1000)]]>"
#. Tag: para
#: Annotations.xml:267
#, no-c-format
-msgid ""
-"Specifies that a component is accessed concurrently by multiple clients, and "
-"that Seam should serialize requests. If a request is not able to obtain its "
-"lock on the component in the given timeout period, an exception will be "
-"raised."
-msgstr ""
+msgid "Specifies that a component is accessed concurrently by multiple clients, and that Seam should serialize requests. If a request is not able to obtain its lock on the component in the given timeout period, an exception will be raised."
+msgstr "Spécifie qu'un composant est accédé de façon concurentielle par plusieurs clients et que Seam doit alors placer les requètes dans une file d'attente. Si une requète ne parvient pas à obtenir le verrou sur le composant dans un laps de temps égal au timeout, une exception est levée."
#. Tag: literal
#: Annotations.xml:277
#, no-c-format
msgid "@ReadOnly"
-msgstr ""
+msgstr "@ReadOnly"
#. Tag: programlisting
#: Annotations.xml:280
#, no-c-format
msgid "<![CDATA[@ReadOnly]]>"
-msgstr ""
+msgstr "<![CDATA[@ReadOnly]]>"
#. Tag: para
#: Annotations.xml:281
#, no-c-format
-msgid ""
-"Specifies that a JavaBean component or component method does not require "
-"state replication at the end of the invocation."
-msgstr ""
+msgid "Specifies that a JavaBean component or component method does not require state replication at the end of the invocation."
+msgstr "Spécifie qu'un composant JavaBean ou une méthode de composant de nécessite pas une réplication d'état à l'issu de son invocation."
#. Tag: literal
#: Annotations.xml:289
#, no-c-format
msgid "@AutoCreate"
-msgstr ""
+msgstr "@AutoCreate"
#. Tag: programlisting
#: Annotations.xml:292
#, no-c-format
msgid "<![CDATA[@AutoCreate]]>"
-msgstr ""
+msgstr "<![CDATA[@AutoCreate]]>"
#. Tag: para
#: Annotations.xml:293
#, no-c-format
-msgid ""
-"Specifies that a component will be automatically created, even if the client "
-"does not specify <literal>create=true</literal>."
-msgstr ""
+msgid "Specifies that a component will be automatically created, even if the client does not specify <literal>create=true</literal>."
+msgstr "Spécifie que le composant sera automatiquement créé, même si le code client ne spécifie pas <literal>create=true</literal>."
#. Tag: title
#: Annotations.xml:303
#, no-c-format
msgid "Annotations for bijection"
-msgstr ""
+msgstr "Les annotations pour les bijections"
#. Tag: para
#: Annotations.xml:304
#, no-c-format
-msgid ""
-"The next two annotations control bijection. These attributes occur on "
-"component instance variables or property accessor methods."
-msgstr ""
+msgid "The next two annotations control bijection. These attributes occur on component instance variables or property accessor methods."
+msgstr "Les deux annotations suivantes contrôle le processus de bijection. Ces attributs peuvent être placés sur les propriétés du composants ou sur leurs accesseurs (ie getter et setter)"
#. Tag: literal
#: Annotations.xml:312
#, no-c-format
msgid "<literal>@In</literal>"
-msgstr ""
+msgstr "<literal>@In</literal>"
#. Tag: programlisting
#: Annotations.xml:315
#, no-c-format
msgid "<![CDATA[@In]]>"
-msgstr ""
+msgstr "<![CDATA[@In]]>"
#. Tag: para
#: Annotations.xml:316
#, no-c-format
-msgid ""
-"Specifies that a component attribute is to be injected from a context "
-"variable at the beginning of each component invocation. If the context "
-"variable is null, an exception will be thrown."
-msgstr ""
+msgid "Specifies that a component attribute is to be injected from a context variable at the beginning of each component invocation. If the context variable is null, an exception will be thrown."
+msgstr "Spécifie qu'une variable de contexte doit être injecté dans un attribut de composant au début de chaque invocation du composant. Si la variable de contexte est nulle une exception est levée."
#. Tag: programlisting
#: Annotations.xml:322
#, no-c-format
msgid "<![CDATA[@In(required=false)]]>"
-msgstr ""
+msgstr "<![CDATA[@In(required=false)]]>"
#. Tag: para
#: Annotations.xml:323
#, no-c-format
-msgid ""
-"Specifies that a component attribute is to be injected from a context "
-"variable at the beginning of each component invocation. The context variable "
-"may be null."
-msgstr ""
+msgid "Specifies that a component attribute is to be injected from a context variable at the beginning of each component invocation. The context variable may be null."
+msgstr "Spécifie qu'une variable de contexte doit être injecté dans un attribut de composant au début de chaque invocation du composant. Cette variable de contexte peut être nulle."
#. Tag: programlisting
#: Annotations.xml:328
#, no-c-format
msgid "<![CDATA[@In(create=true)]]>"
-msgstr ""
+msgstr "<![CDATA[@In(create=true)]]>"
#. Tag: para
#: Annotations.xml:329
#, no-c-format
-msgid ""
-"Specifies that a component attribute is to be injected from a context "
-"variable at the beginning of each component invocation. If the context "
-"variable is null, an instance of the component is instantiated by Seam."
-msgstr ""
+msgid "Specifies that a component attribute is to be injected from a context variable at the beginning of each component invocation. If the context variable is null, an instance of the component is instantiated by Seam."
+msgstr "Spécifie qu'une variable de contexte doit être injecté dans un attribut de composant au début de chaque invocation du composant. Si la variable est nulle, alors Seam instanciera une instance de ce composant."
#. Tag: programlisting
#: Annotations.xml:335
#, no-c-format
msgid "<![CDATA[@In(value=\"contextVariableName\")]]>"
-msgstr ""
+msgstr "<![CDATA[@In(value=\"contextVariableName\")]]>"
#. Tag: para
-#: Annotations.xml:336 Annotations.xml:403
+#: Annotations.xml:336
+#: Annotations.xml:403
#, no-c-format
-msgid ""
-"Specifies the name of the context variable explicitly, instead of using the "
-"annotated instance variable name."
-msgstr ""
+msgid "Specifies the name of the context variable explicitly, instead of using the annotated instance variable name."
+msgstr "Spécifie le nom de la variable de contexte explicitement au lieu d'utiliser le nom de la variable annotée."
#. Tag: programlisting
#: Annotations.xml:340
#, no-c-format
msgid "<![CDATA[@In(value=\"#{customer.addresses['shipping']}\")]]>"
-msgstr ""
+msgstr "<![CDATA[@In(value=\"#{customer.addresses['shipping']}\")]]>"
#. Tag: para
#: Annotations.xml:341
#, no-c-format
-msgid ""
-"Specifies that a component attribute is to be injected by evaluating a JSF "
-"EL expression at the beginning of each component invocation."
-msgstr ""
+msgid "Specifies that a component attribute is to be injected by evaluating a JSF EL expression at the beginning of each component invocation."
+msgstr "Spécifie que l'attribut du composant doit être injecté en évaluant une expression JSF EL au début de chaque invocation du composant."
#. Tag: para
#: Annotations.xml:348
#, no-c-format
-msgid ""
-"<literal>value</literal> — specifies the name of the context variable. "
-"Default to the name of the component attribute. Alternatively, specifies a "
-"JSF EL expression, surrounded by <literal>#{...}</literal>."
-msgstr ""
+msgid "<literal>value</literal> — specifies the name of the context variable. Default to the name of the component attribute. Alternatively, specifies a JSF EL expression, surrounded by <literal>#{...}</literal>."
+msgstr "<literal>value</literal> — spécifie le nom de la variable de contexte. Par défaut le nom de l'attribut du composant sera utilisé. Alternativement une expression JSF EL peut être fourni en respectant la syntaxe <literal>#{...}</literal>."
#. Tag: para
#: Annotations.xml:356
#, no-c-format
-msgid ""
-"<literal>create</literal> — specifies that Seam should instantiate the "
-"component with the same name as the context variable if the context variable "
-"is undefined (null) in all contexts. Default to false."
-msgstr ""
+msgid "<literal>create</literal> — specifies that Seam should instantiate the component with the same name as the context variable if the context variable is undefined (null) in all contexts. Default to false."
+msgstr "<literal>create</literal> — Spécifie que Seam devra instancié le composant avec le même nom que la variable de contexte si celle-ci ne peut être trouvé dans aucun contexte . Faux par défaut."
#. Tag: para
#: Annotations.xml:364
#, no-c-format
-msgid ""
-"<literal>required</literal> — specifies Seam should throw an exception "
-"if the context variable is undefined in all contexts."
-msgstr ""
+msgid "<literal>required</literal> — specifies Seam should throw an exception if the context variable is undefined in all contexts."
+msgstr "<literal>required</literal> — Spécifie que Seam doit envoyer une exception, si la variable de contexte ne peut être trouvé dans aucun des contextes."
#. Tag: literal
#: Annotations.xml:375
#, no-c-format
msgid "@Out"
-msgstr ""
+msgstr "@Out"
#. Tag: programlisting
#: Annotations.xml:378
#, no-c-format
msgid "<![CDATA[@Out]]>"
-msgstr ""
+msgstr "<![CDATA[@Out]]>"
#. Tag: para
#: Annotations.xml:379
#, no-c-format
-msgid ""
-"Specifies that a component attribute that is a Seam component is to be "
-"outjected to its context variable at the end of the invocation. If the "
-"attribute is null, an exception is thrown."
-msgstr ""
+msgid "Specifies that a component attribute that is a Seam component is to be outjected to its context variable at the end of the invocation. If the attribute is null, an exception is thrown."
+msgstr "Spécifie que l'attribut de composant, qui est aussi un composant Seam, doit être \"exposé\" dans l'un des contextes (scopes) de Seam à la fin de chaque invocation du composant. Si l'attribut est null, une exception est levée."
#. Tag: programlisting
#: Annotations.xml:384
#, no-c-format
msgid "<![CDATA[@Out(required=false)]]>"
-msgstr ""
+msgstr "<![CDATA[@Out(required=false)]]>"
#. Tag: para
#: Annotations.xml:385
#, no-c-format
-msgid ""
-"Specifies that a component attribute that is a Seam component is to be "
-"outjected to its context variable at the end of the invocation. The "
-"attribute may be null."
-msgstr ""
+msgid "Specifies that a component attribute that is a Seam component is to be outjected to its context variable at the end of the invocation. The attribute may be null."
+msgstr "Spécifie qu'un attribut de composant, qui est aussi un composant Seam, doit être \"exposé\" dans l'un des contextes (scopes) de Seam à la fin de chaque invocation du composant. L'attribut peut-être null. "
#. Tag: programlisting
#: Annotations.xml:390
#, no-c-format
msgid "<![CDATA[(a)Out(scope=ScopeType.SESSION)]]>"
-msgstr ""
+msgstr "<![CDATA[(a)Out(scope=ScopeType.SESSION)]]>"
#. Tag: para
#: Annotations.xml:391
#, no-c-format
-msgid ""
-"Specifies that a component attribute that is <emphasis>not</emphasis> a Seam "
-"component type is to be outjected to a specific scope at the end of the "
-"invocation."
-msgstr ""
+msgid "Specifies that a component attribute that is <emphasis>not</emphasis> a Seam component type is to be outjected to a specific scope at the end of the invocation."
+msgstr "Spécifie qu'un attribut de composant qui <emphasis>n'est pas</emphasis> un composant Seam doit être exposé dans un scope (context) spécifique de Seam à la fin de l'invocation du composant."
#. Tag: para
#: Annotations.xml:396
#, no-c-format
-msgid ""
-"Alternatively, if no scope is explicitly specified, the scope of the "
-"component with the <literal>@Out</literal> attribute is used (or the "
-"<literal>EVENT</literal> scope if the component is stateless)."
-msgstr ""
+msgid "Alternatively, if no scope is explicitly specified, the scope of the component with the <literal>@Out</literal> attribute is used (or the <literal>EVENT</literal> scope if the component is stateless)."
+msgstr "Mais si aucun scope (context) n'est spécifié, c'est le scope du composant qui porte l'attribut annoté <literal>@Out</literal> qui sera utilisé (Si le composant porteur est stateless alors l'attribut annoté sera oujecté dans le scope (context) <literal>EVENT</literal>)."
#. Tag: programlisting
#: Annotations.xml:402
#, no-c-format
msgid "<![CDATA[@Out(value=\"contextVariableName\")]]>"
-msgstr ""
+msgstr "<![CDATA[@Out(value=\"contextVariableName\")]]>"
#. Tag: para
#: Annotations.xml:409
#, no-c-format
-msgid ""
-"<literal>value</literal> — specifies the name of the context variable. "
-"Default to the name of the component attribute."
-msgstr ""
+msgid "<literal>value</literal> — specifies the name of the context variable. Default to the name of the component attribute."
+msgstr "<literal>value</literal> — spécifie le nom de la variable de contexte. Par défaut c'est le nom de l'attribut du composant qui sera utilisé."
#. Tag: para
#: Annotations.xml:416
#, no-c-format
-msgid ""
-"<literal>required</literal> — specifies Seam should throw an exception "
-"if the component attribute is null during outjection."
-msgstr ""
+msgid "<literal>required</literal> — specifies Seam should throw an exception if the component attribute is null during outjection."
+msgstr "<literal>required</literal> — spécifie que Seam doit lever une exception, si le composant est null durant l'outjection."
#. Tag: para
#: Annotations.xml:427
#, no-c-format
-msgid ""
-"Note that it is quite common for these annotations to occur together, for "
-"example:"
-msgstr ""
+msgid "Note that it is quite common for these annotations to occur together, for example:"
+msgstr "Remarquer qu'il est assez fréquent pour ces annotations d'être utilisées ensemble, par exemple :"
#. Tag: programlisting
#: Annotations.xml:432
#, no-c-format
msgid "<![CDATA[@In(create=true) @Out private User currentUser;]]>"
-msgstr ""
+msgstr "<![CDATA[@In(create=true) @Out private User currentUser;]]>"
#. Tag: para
#: Annotations.xml:434
#, no-c-format
-msgid ""
-"The next annotation supports the <emphasis>manager component</emphasis> "
-"pattern, where a Seam component that manages the lifecycle of an instance of "
-"some other class that is to be injected. It appears on a component getter "
-"method."
-msgstr ""
+msgid "The next annotation supports the <emphasis>manager component</emphasis> pattern, where a Seam component that manages the lifecycle of an instance of some other class that is to be injected. It appears on a component getter method."
+msgstr "La prochaine annotation permet de mettre en oeuvre le pattern <emphasis>composant gestionnaire</emphasis>, dans lequel un composant Seam a à sa charge le cycle de vie d 'une classe qui sera injectée dans les services qui le demanderont. La classe qui est \"gérée\" apparait comme un getter du \"composant gestionnaire\"."
#. Tag: literal
#: Annotations.xml:444
#, no-c-format
msgid "@Unwrap"
-msgstr ""
+msgstr "@Unwrap"
#. Tag: programlisting
#: Annotations.xml:447
#, no-c-format
msgid "<![CDATA[@Unwrap]]>"
-msgstr ""
+msgstr "<![CDATA[@Unwrap]]>"
#. Tag: para
#: Annotations.xml:448
#, no-c-format
-msgid ""
-"Specifies that the object returned by the annotated getter method is the "
-"thing that is injected instead of the component instance itself."
-msgstr ""
+msgid "Specifies that the object returned by the annotated getter method is the thing that is injected instead of the component instance itself."
+msgstr "Spécifie que l'objet retourné par la méthode getter annotée sera injecté à la place du composant lui-même."
#. Tag: para
#: Annotations.xml:457
#, no-c-format
-msgid ""
-"The next annotation supports the <emphasis>factory component</emphasis> "
-"pattern, where a Seam component is responsible for initializing the value of "
-"a context variable. This is especially useful for initializing any state "
-"needed for rendering the response to a non-faces request. It appears on a "
-"component method."
-msgstr ""
+msgid "The next annotation supports the <emphasis>factory component</emphasis> pattern, where a Seam component is responsible for initializing the value of a context variable. This is especially useful for initializing any state needed for rendering the response to a non-faces request. It appears on a component method."
+msgstr "La prochaine annotation permet de mettre en oeuvre le pattern <emphasis>Fabrique de composant</emphasis>, où un composant Seam est responsable de la fabrique d'une variable de contexte. C'est particulièrement utilie lorsqu'il faut initialiser les états necessaires au rendu d'une requêtes ne provenant pas directement d'une action JSF (non-faces request). Cette annotation apparait sur une méthode de composant. "
#. Tag: literal
#: Annotations.xml:468
#, no-c-format
msgid "@Factory"
-msgstr ""
+msgstr "@Factory"
#. Tag: programlisting
#: Annotations.xml:471
#, no-c-format
-msgid ""
-"<![CDATA[@Factory(\"processInstance\") public void createProcessInstance() "
-"{ ... }]]>"
-msgstr ""
+msgid "<![CDATA[@Factory(\"processInstance\") public void createProcessInstance() { ... }]]>"
+msgstr "<![CDATA[@Factory(\"processInstance\") public void createProcessInstance() { ... }]]>"
#. Tag: para
#: Annotations.xml:472
#, no-c-format
-msgid ""
-"Specifies that the method of the component is used to initialize the value "
-"of the named context variable, when the context variable has no value. This "
-"style is used with methods that return <literal>void</literal>."
-msgstr ""
+msgid "Specifies that the method of the component is used to initialize the value of the named context variable, when the context variable has no value. This style is used with methods that return <literal>void</literal>."
+msgstr "Spécifie que la méthode annotée du composant sera invoquée pour initialiser la valeur de la variable de contexte quand celle-ci n'a pas encore de valeur. Ce style est utilisée avec des méthodes ne renvoyant aucune valeur (type de retour <litteral>void</literal>)."
#. Tag: programlisting
#: Annotations.xml:478
#, no-c-format
-msgid ""
-"<![CDATA[@Factory(\"processInstance\", scope=CONVERSATION) public "
-"ProcessInstance createProcessInstance() { ... }]]>"
-msgstr ""
+msgid "<![CDATA[@Factory(\"processInstance\", scope=CONVERSATION) public ProcessInstance createProcessInstance() { ... }]]>"
+msgstr "<![CDATA[@Factory(\"processInstance\", scope=CONVERSATION) public ProcessInstance createProcessInstance() { ... }]]>"
#. Tag: para
#: Annotations.xml:479
#, no-c-format
-msgid ""
-"Specifies that the method returns a value that Seam should use to initialize "
-"the value of the named context variable, when the context variable has no "
-"value. This style is used with methods that return a value. If no scope is "
-"explicitly specified, the scope of the component with the <literal>@Factory</"
-"literal> method is used (unless the component is stateless, in which case "
-"the <literal>EVENT</literal> context is used)."
-msgstr ""
+msgid "Specifies that the method returns a value that Seam should use to initialize the value of the named context variable, when the context variable has no value. This style is used with methods that return a value. If no scope is explicitly specified, the scope of the component with the <literal>@Factory</literal> method is used (unless the component is stateless, in which case the <literal>EVENT</literal> context is used)."
+msgstr "Spécifie que la méthode renvoie une valeur que Seam devra utiliser pour pour initialiser la variable de contexte lorsque celle-ci n'a pas de valeur. Ce style est utilisé avec les méthodes renvoyant une valeur. Si aucun scope n'est spécifié, le scope du composant possedant la méthode annotée <literal>@Factory</literal> est utilisée (a moins que le composant soit stateless dans ce cas c'est le scope (context) <literal>EVENT</literal> qui sera utilisée)."
#. Tag: para
#: Annotations.xml:491
#, no-c-format
-msgid ""
-"<literal>value</literal> — specifies the name of the context variable. "
-"If the method is a getter method, default to the JavaBeans property name."
-msgstr ""
+msgid "<literal>value</literal> — specifies the name of the context variable. If the method is a getter method, default to the JavaBeans property name."
+msgstr "<literal>value</literal> — spécifie le nom de la variable de contexte. Si cette méthode est un getter, utilise par défaut le nom de la propriété JavaBeans."
#. Tag: para
#: Annotations.xml:498
#, no-c-format
-msgid ""
-"<literal>scope</literal> — specifies the scope that Seam should bind "
-"the returned value to. Only meaningful for factory methods which return a "
-"value."
-msgstr ""
+msgid "<literal>scope</literal> — specifies the scope that Seam should bind the returned value to. Only meaningful for factory methods which return a value."
+msgstr "<literal>scope</literal> — spécifie le scope dans lequel Seam devra placer la variable. Ca n'a de sens que pour les méthodes annotées <literal>@Factory</literal> qui renvoient une valeur."
#. Tag: para
#: Annotations.xml:505
#, no-c-format
-msgid ""
-"<literal>autoCreate</literal> — specifies that this factory method "
-"should be automatically called whenever the variable is asked for, even if "
-"<literal>@In</literal> does not specify <literal>create=true</literal>."
-msgstr ""
+msgid "<literal>autoCreate</literal> — specifies that this factory method should be automatically called whenever the variable is asked for, even if <literal>@In</literal> does not specify <literal>create=true</literal>."
+msgstr "<literal>autoCreate</literal> — spécifie que la méthode de fabrique doit être automatiquement invoquée a chaque fois que la variable est demandée, même si <literal>@In</literal> ne spécifie pas <literal>create=true</literal>."
#. Tag: para
#: Annotations.xml:518
#, no-c-format
msgid "This annotation lets you inject a <literal>Log</literal>:"
-msgstr ""
+msgstr "Cette annottion vous permet d'injecter un <literal>Log</literal>:"
#. Tag: literal
#: Annotations.xml:525
#, no-c-format
msgid "@Logger"
-msgstr ""
+msgstr "@Logger"
#. Tag: programlisting
#: Annotations.xml:528
#, no-c-format
msgid "<![CDATA[@Logger(\"categoryName\")]]>"
-msgstr ""
+msgstr "<![CDATA[@Logger(\"categoryName\")]]>"
#. Tag: para
#: Annotations.xml:529
#, no-c-format
-msgid ""
-"Specifies that a component field is to be injected with an instance of "
-"<literal>org.jboss.seam.log.Log</literal>. For entity beans, the field must "
-"be declared as static."
-msgstr ""
+msgid "Specifies that a component field is to be injected with an instance of <literal>org.jboss.seam.log.Log</literal>. For entity beans, the field must be declared as static."
+msgstr "Spécifie qu'il faut injecter dans un attribut du composant une instance de <literal>org.jboss.seam.log.Log</literal>. Pour un bean entité il faut que l'attribut injecté soit déclaré statique."
#. Tag: para
#: Annotations.xml:536
#, no-c-format
-msgid ""
-"<literal>value</literal> — specifies the name of the log category. "
-"Default to the name of the component class."
-msgstr ""
+msgid "<literal>value</literal> — specifies the name of the log category. Default to the name of the component class."
+msgstr "<literal>value</literal> — spécifie le nom de la catégorie de log. Par défaut le nom du composant est utilisé."
#. Tag: para
#: Annotations.xml:547
#, no-c-format
msgid "The last annotation lets you inject a request parameter value:"
-msgstr ""
+msgstr "La dernière annotation vous permet d'injecter un paramètre de requète."
#. Tag: literal
#: Annotations.xml:554
#, no-c-format
msgid "@RequestParameter"
-msgstr ""
+msgstr "@RequestParameter"
#. Tag: programlisting
#: Annotations.xml:557
#, no-c-format
msgid "<![CDATA[@RequestParameter(\"parameterName\")]]>"
-msgstr ""
+msgstr "<![CDATA[@RequestParameter(\"parameterName\")]]>"
#. Tag: para
#: Annotations.xml:558
#, no-c-format
-msgid ""
-"Specifies that a component attribute is to be injected with the value of a "
-"request parameter. Basic type conversions are performed automatically."
-msgstr ""
+msgid "Specifies that a component attribute is to be injected with the value of a request parameter. Basic type conversions are performed automatically."
+msgstr "Spécifie que l'on injecte dans l'attribut du composant un paramètre de requète. Les conversions des types de base sont faits automatiquement."
#. Tag: para
#: Annotations.xml:565
#, no-c-format
-msgid ""
-"<literal>value</literal> — specifies the name of the request "
-"parameter. Default to the name of the component attribute."
-msgstr ""
+msgid "<literal>value</literal> — specifies the name of the request parameter. Default to the name of the component attribute."
+msgstr "<literal>value</literal> —spécifie le nom du paramètre de requète. Par défaut on utilise le nom de l'attribut dans le composant."
#. Tag: title
#: Annotations.xml:579
#, no-c-format
msgid "Annotations for component lifecycle methods"
-msgstr ""
+msgstr "Les annotations pour les méthodes de cycle de vie."
#. Tag: para
#: Annotations.xml:580
#, no-c-format
-msgid ""
-"These annotations allow a component to react to its own lifecycle events. "
-"They occur on methods of the component. There may be only one of each per "
-"component class."
-msgstr ""
+msgid "These annotations allow a component to react to its own lifecycle events. They occur on methods of the component. There may be only one of each per component class."
+msgstr "Ces annotations permettent à un composant de réagir aux événement de son propre cycle de vie. On ne peut en déclarer qu'une par classe."
#. Tag: literal
#: Annotations.xml:589
#, no-c-format
msgid "@Create"
-msgstr ""
+msgstr "@Create"
#. Tag: programlisting
#: Annotations.xml:592
#, no-c-format
msgid "<![CDATA[@Create]]>"
-msgstr ""
+msgstr "<![CDATA[@Create]]>"
#. Tag: para
#: Annotations.xml:593
#, no-c-format
-msgid ""
-"Specifies that the method should be called when an instance of the component "
-"is instantiated by Seam. Note that create methods are only supported for "
-"JavaBeans and stateful session beans."
-msgstr ""
+msgid "Specifies that the method should be called when an instance of the component is instantiated by Seam. Note that create methods are only supported for JavaBeans and stateful session beans."
+msgstr "Spécifie que cette méthode doit être appellée quand une instance du composant a été instancié par Seam. Attention les méthodes annotés <literal>@Create</literal> ne nont applicable que pour les JavaBean et les beans session stateful."
#. Tag: literal
#: Annotations.xml:603
#, no-c-format
msgid "@Destroy"
-msgstr ""
+msgstr "@Destroy"
#. Tag: programlisting
#: Annotations.xml:606
#, no-c-format
msgid "<![CDATA[@Destroy]]>"
-msgstr ""
+msgstr "<![CDATA[@Destroy]]>"
#. Tag: para
#: Annotations.xml:607
#, no-c-format
-msgid ""
-"Specifies that the method should be called when the context ends and its "
-"context variables are destroyed. Note that destroy methods are only "
-"supported for JavaBeans and stateful session beans."
-msgstr ""
+msgid "Specifies that the method should be called when the context ends and its context variables are destroyed. Note that destroy methods are only supported for JavaBeans and stateful session beans."
+msgstr "Spécifie que la méthode doit être invoqué lorsque que le contexte se termine et que chaque variable de celui-ci va être supprimée. Attention seul les JavaBean et les session bean stateful peuvent déclaré des méthodes destroy."
#. Tag: para
#: Annotations.xml:613
#, no-c-format
-msgid ""
-"Destroy methods should be used only for cleanup. <emphasis>Seam catches, "
-"logs and swallows any exception that propagates out of a destroy method.</"
-"emphasis>"
-msgstr ""
+msgid "Destroy methods should be used only for cleanup. <emphasis>Seam catches, logs and swallows any exception that propagates out of a destroy method.</emphasis>"
+msgstr "Les méthodes destroy ne devrait être utilisés que pour la libération des ressources. <emphasis>Seam intercepte et log toutes exceptions qu'une méthodes destroy pourrait propager</emphasis>."
#. Tag: literal
#: Annotations.xml:622
#, no-c-format
msgid "@Observer"
-msgstr ""
+msgstr "@Observer"
#. Tag: programlisting
#: Annotations.xml:625
#, no-c-format
msgid "<![CDATA[@Observer(\"somethingChanged\")]]>"
-msgstr ""
+msgstr "<![CDATA[@Observer(\"somethingChanged\")]]>"
#. Tag: para
#: Annotations.xml:626
#, no-c-format
-msgid ""
-"Specifies that the method should be called when a component-driven event of "
-"the specified type occurs."
-msgstr ""
+msgid "Specifies that the method should be called when a component-driven event of the specified type occurs."
+msgstr "Spécifie que la méthode devrait être invoquée lorsqu'un événement issus d'un composant est émis."
#. Tag: programlisting
#: Annotations.xml:630
#, no-c-format
msgid "<![CDATA[@Observer(value=\"somethingChanged\",create=false)]]>"
-msgstr ""
+msgstr "<![CDATA[@Observer(value=\"somethingChanged\",create=false)]]>"
#. Tag: para
#: Annotations.xml:631
#, no-c-format
-msgid ""
-"Specifies that the method should be called when an event of the specified "
-"type occurs but that an instance should not be created if one doesn't exist. "
-"If an instance does not exist and create is false, the event will not be "
-"observed. The default value for create is true."
-msgstr ""
+msgid "Specifies that the method should be called when an event of the specified type occurs but that an instance should not be created if one doesn't exist. If an instance does not exist and create is false, the event will not be observed. The default value for create is true."
+msgstr "Spécifie que la méthode doit être invoquée si un évenement de ce type survient, mais que l'instance du composant écouteur ne devrait pas être créé si il n'existe pas. Si l'instance n'existe pas l'événement ne sera pas écouté. La valeur par défaut de create est true."
#. Tag: title
#: Annotations.xml:645
#, no-c-format
msgid "Annotations for context demarcation"
-msgstr ""
+msgstr "Les annotations pour la démarcation de contexte"
#. Tag: para
#: Annotations.xml:646
#, no-c-format
-msgid ""
-"These annotations provide declarative conversation demarcation. They appear "
-"on methods of Seam components, usually action listener methods."
-msgstr ""
+msgid "These annotations provide declarative conversation demarcation. They appear on methods of Seam components, usually action listener methods."
+msgstr "Ces annotations permetent de démarquer de façon déclarative les conversations. Elles apparaissent le plus souvent sur des méthodes écouteurs."
#. Tag: para
#: Annotations.xml:651
#, no-c-format
-msgid ""
-"Every web request has a conversation context associated with it. Most of "
-"these conversations end at the end of the request. If you want a "
-"conversation that span multiple requests, you must \"promote\" the current "
-"conversation to a <emphasis>long-running conversation</emphasis> by calling "
-"a method marked with <literal>@Begin</literal>."
-msgstr ""
+msgid "Every web request has a conversation context associated with it. Most of these conversations end at the end of the request. If you want a conversation that span multiple requests, you must \"promote\" the current conversation to a <emphasis>long-running conversation</emphasis> by calling a method marked with <literal>@Begin</literal>."
+msgstr "Chaque requete web a un context de conversation qui lui est associé. La plupart de ces conversations s'acheve avec la requète. Si vous voulez que la conversation s'étende sur plusieurs requètes il vous faudra \"Promouvoir\" la conversation courante au rang de <emphasis>longue conversation</emphasis> en invoquent une méthode annotée <literal>@Begin</literal>. "
#. Tag: literal
#: Annotations.xml:662
#, no-c-format
msgid "@Begin"
-msgstr ""
+msgstr "@Begin"
#. Tag: programlisting
#: Annotations.xml:665
#, no-c-format
msgid "<![CDATA[@Begin]]>"
-msgstr ""
+msgstr "<![CDATA[@Begin]]>"
#. Tag: para
#: Annotations.xml:666
#, no-c-format
-msgid ""
-"Specifies that a long-running conversation begins when this method returns a "
-"non-null outcome without exception."
-msgstr ""
+msgid "Specifies that a long-running conversation begins when this method returns a non-null outcome without exception."
+msgstr "Spécifie qu'une conversation longue démarre quand cette méthode renvoie une valeur non nulle sans lever d'exception."
#. Tag: programlisting
#: Annotations.xml:670
#, no-c-format
msgid "<![CDATA[@Begin(join=true)]]>"
-msgstr ""
+msgstr "<![CDATA[@Begin(join=true)]]>"
#. Tag: para
#: Annotations.xml:671
#, no-c-format
-msgid ""
-"Specifies that if a long-running conversation is already in progress, the "
-"conversation context is simply propagated."
-msgstr ""
+msgid "Specifies that if a long-running conversation is already in progress, the conversation context is simply propagated."
+msgstr "Spécifie qu'une longue conversation a déjà démarré, le contexte the conversation est simplement propagé."
#. Tag: programlisting
#: Annotations.xml:675
#, no-c-format
msgid "<![CDATA[@Begin(nested=true)]]>"
-msgstr ""
+msgstr "<![CDATA[@Begin(nested=true)]]>"
#. Tag: para
#: Annotations.xml:676
#, no-c-format
-msgid ""
-"Specifies that if a long-running conversation is already in progress, a new "
-"<emphasis>nested</emphasis> conversation context begins. The nested "
-"conversation will end when the next <literal>@End</literal> is encountered, "
-"and the outer conversation will resume. It is perfectly legal for multiple "
-"nested conversations to exist concurrently in the same outer conversation."
-msgstr ""
+msgid "Specifies that if a long-running conversation is already in progress, a new <emphasis>nested</emphasis> conversation context begins. The nested conversation will end when the next <literal>@End</literal> is encountered, and the outer conversation will resume. It is perfectly legal for multiple nested conversations to exist concurrently in the same outer conversation."
+msgstr "Spéciifie qu'une longue conversation est déjà engagée, un nouveau contexte de <emphasis>conversation enfant</emphasis> est démarré. La conversation enfant se terminera à la prochaine invoquation d'une méthode annotée <literal>@End</literal>, la conversation parente reprendra alors. Il est tout à fait possible que plusieurs conversations enfants existent concurentiellement au sein de la même conversation parente."
#. Tag: programlisting
#: Annotations.xml:685
#, no-c-format
msgid "<![CDATA[@Begin(pageflow=\"process definition name\")]]>"
-msgstr ""
+msgstr "<![CDATA[@Begin(pageflow=\"process definition name\")]]>"
#. Tag: para
#: Annotations.xml:686
#, no-c-format
-msgid ""
-"Specifies a jBPM process definition name that defines the pageflow for this "
-"conversation."
-msgstr ""
+msgid "Specifies a jBPM process definition name that defines the pageflow for this conversation."
+msgstr "Spécifie q'une définition de pageflow JBPM sera utilisée pour conduire cette conversation."
#. Tag: programlisting
#: Annotations.xml:690
#, no-c-format
msgid "<![CDATA[(a)Begin(flushMode=FlushModeType.MANUAL)]]>"
-msgstr ""
+msgstr "<![CDATA[(a)Begin(flushMode=FlushModeType.MANUAL)]]>"
#. Tag: para
#: Annotations.xml:691
#, no-c-format
-msgid ""
-"Specify the flush mode of any Seam-managed persistence contexts. "
-"<literal>flushMode=FlushModeType.MANUAL</literal> supports the use of "
-"<emphasis>atomic conversations</emphasis> where all write operations are "
-"queued in the conversation context until an explicit call to <literal>flush()"
-"</literal> (which usually occurs at the end of the conversation)."
-msgstr ""
+msgid "Specify the flush mode of any Seam-managed persistence contexts. <literal>flushMode=FlushModeType.MANUAL</literal> supports the use of <emphasis>atomic conversations</emphasis> where all write operations are queued in the conversation context until an explicit call to <literal>flush()</literal> (which usually occurs at the end of the conversation)."
+msgstr "Spécifie le flush mode de tous les contextes de persistence managés par Seam. <literal>flushMode=FlushModeType.MANUAL</literal> apporte la notion de <emphasis>conversation atomique</emphasis> où toutes opérations d'écriture est mis en queue dans le contexte de persistence jusqu'à ce qu'un appel explicite à <literal>flush()</literal> ait lieu ( en général à la fin de la conversation)."
#. Tag: para
#: Annotations.xml:702
#, no-c-format
-msgid ""
-"<literal>join</literal> — determines the behavior when a long-running "
-"conversation is already in progress. If <literal>true</literal>, the context "
-"is propagated. If <literal>false</literal>, an exception is thrown. Default "
-"to <literal>false</literal>. This setting is ignored when "
-"<literal>nested=true</literal> is specified."
-msgstr ""
+msgid "<literal>join</literal> — determines the behavior when a long-running conversation is already in progress. If <literal>true</literal>, the context is propagated. If <literal>false</literal>, an exception is thrown. Default to <literal>false</literal>. This setting is ignored when <literal>nested=true</literal> is specified."
+msgstr "<literal>join</literal> — détermine le mode de propagation lorsque qu'une conversation est déjà engagée. Si join vaut <literal>true</literal>,le contexte est propagé. Si join vaut <literal>false</literal>, un exception est levée. Par défaut join vaut <literal>false</literal>. Ce paramétrage est ignoré si <literal>nested=true</literal>est spécifié."
#. Tag: para
#: Annotations.xml:713
#, no-c-format
-msgid ""
-"<literal>nested</literal> — specifies that a nested conversation "
-"should be started if a long-running conversation is already in progress."
-msgstr ""
+msgid "<literal>nested</literal> — specifies that a nested conversation should be started if a long-running conversation is already in progress."
+msgstr "<literal>nested</literal> — Spécifie qu'une conversation enfant devrait être démarrée si une longue conversation est déjà engagée."
#. Tag: para
-#: Annotations.xml:720 Annotations.xml:800 Annotations.xml:847
+#: Annotations.xml:720
+#: Annotations.xml:800
+#: Annotations.xml:847
#, no-c-format
-msgid ""
-"<literal>flushMode</literal> — set the flush mode of any Seam-managed "
-"Hibernate sessions or JPA persistence contexts that are created during this "
-"conversation."
-msgstr ""
+msgid "<literal>flushMode</literal> — set the flush mode of any Seam-managed Hibernate sessions or JPA persistence contexts that are created during this conversation."
+msgstr "<literal>flushMode</literal> — fixe le flush mode de toutes les sessions Hibernate ou de tous les contextes de persistence managé par Seam qui seront créés durant cette conversation."
#. Tag: para
#: Annotations.xml:728
#, no-c-format
-msgid ""
-"<literal>pageflow</literal> — a process definition name of a jBPM "
-"process definition deployed via <literal>org.jboss.seam.bpm.jbpm."
-"pageflowDefinitions.</literal>"
-msgstr ""
+msgid "<literal>pageflow</literal> — a process definition name of a jBPM process definition deployed via <literal>org.jboss.seam.bpm.jbpm.pageflowDefinitions.</literal>"
+msgstr "<literal>pageflow</literal> — Le nom de la définition d'un process jBPM qui sera déployé via <literal>org.jboss.seam.bpm.jbpm.pageflowDefinitions.</literal>"
#. Tag: literal
#: Annotations.xml:739
#, no-c-format
msgid "@End"
-msgstr ""
+msgstr "@End"
#. Tag: programlisting
#: Annotations.xml:742
#, no-c-format
msgid "<![CDATA[@End]]>"
-msgstr ""
+msgstr "<![CDATA[@End]]>"
#. Tag: para
#: Annotations.xml:743
#, no-c-format
-msgid ""
-"Specifies that a long-running conversation ends when this method returns a "
-"non-null outcome without exception."
-msgstr ""
+msgid "Specifies that a long-running conversation ends when this method returns a non-null outcome without exception."
+msgstr "Spécifie qu'une longue conversation s'achève si la méthode retourne une valeur non null sans lever d'exception."
#. Tag: para
-#: Annotations.xml:749 Annotations.xml:885
+#: Annotations.xml:749
+#: Annotations.xml:885
#, no-c-format
-msgid ""
-"<literal>beforeRedirect</literal> — by default, the conversation will "
-"not actually be destroyed until after any redirect has occurred. Setting "
-"<literal>beforeRedirect=true</literal> specifies that the conversation "
-"should be destroyed at the end of the current request, and that the redirect "
-"will be processed in a new temporary conversation context."
-msgstr ""
+msgid "<literal>beforeRedirect</literal> — by default, the conversation will not actually be destroyed until after any redirect has occurred. Setting <literal>beforeRedirect=true</literal> specifies that the conversation should be destroyed at the end of the current request, and that the redirect will be processed in a new temporary conversation context."
+msgstr "<literal>beforeRedirect</literal> — par défaut une longue conversation ne sera détruite qu'après qu'un redirect ait eu lieu. Choisir <literal>beforeRedirect=true</literal> spécifie que la conversation doit être détruite à la fin de la requête courante, et que la redirection aura lieu dans un nouveau contexte temporaire de conversation."
#. Tag: literal
#: Annotations.xml:764
#, no-c-format
msgid "@StartTask"
-msgstr ""
+msgstr "@StartTask"
#. Tag: programlisting
#: Annotations.xml:767
#, no-c-format
msgid "<![CDATA[@StartTask]]>"
-msgstr ""
+msgstr "<![CDATA[@StartTask]]>"
#. Tag: para
#: Annotations.xml:768
#, no-c-format
-msgid ""
-"\"Starts\" a jBPM task. Specifies that a long-running conversation begins "
-"when this method returns a non-null outcome without exception. This "
-"conversation is associated with the jBPM task specified in the named request "
-"parameter. Within the context of this conversation, a business process "
-"context is also defined, for the business process instance of the task "
-"instance."
-msgstr ""
+msgid "\"Starts\" a jBPM task. Specifies that a long-running conversation begins when this method returns a non-null outcome without exception. This conversation is associated with the jBPM task specified in the named request parameter. Within the context of this conversation, a business process context is also defined, for the business process instance of the task instance."
+msgstr "Démarre une nouvelle tâche JBPM. Spécifie aussi qu'une longue conversation démarre lorsque la méthode ainsi annotée a un retour non null sans lever d'exception. La tâche JBPM qui sera associée à ce contexte de conversation sera spécifiée grâce à un paramètre de requête nommé, le buisness process associé à cette tâche est lui aussi associé à cette conversation."
#. Tag: para
#: Annotations.xml:779
#, no-c-format
-msgid ""
-"The jBPM <literal>TaskInstance</literal> will be available in a request "
-"context variable named <literal>taskInstance</literal>. The jPBM "
-"<literal>ProcessInstance</literal> will be available in a request context "
-"variable named <literal>processInstance</literal>. (Of course, these objects "
-"are available for injection via <literal>@In</literal>.)"
-msgstr ""
+msgid "The jBPM <literal>TaskInstance</literal> will be available in a request context variable named <literal>taskInstance</literal>. The jPBM <literal>ProcessInstance</literal> will be available in a request context variable named <literal>processInstance</literal>. (Of course, these objects are available for injection via <literal>@In</literal>.)"
+msgstr "La <literal>TaskInstance</literal> JBPM sera disponible dans le context de requète comme une variable dont le nom sera <literal>taskInstance</jbpm>. Le <literal>ProcessInstance</literal> sera disponible dans le contexte de requète comme une variable dont le nom sera <literal>processInstance</literal>. (Bien sûr ces objets peuvent être dynamiquement injectés via l'annotation <literal>@In</literal>.) "
#. Tag: para
-#: Annotations.xml:791 Annotations.xml:838
+#: Annotations.xml:791
+#: Annotations.xml:838
#, no-c-format
-msgid ""
-"<literal>taskIdParameter</literal> — the name of a request parameter "
-"which holds the id of the task. Default to <literal>\"taskId\"</literal>, "
-"which is also the default used by the Seam <literal>taskList</literal> JSF "
-"component."
-msgstr ""
+msgid "<literal>taskIdParameter</literal> — the name of a request parameter which holds the id of the task. Default to <literal>\"taskId\"</literal>, which is also the default used by the Seam <literal>taskList</literal> JSF component."
+msgstr "<literal>taskIdParameter</literal> — le nom du paramètre de requète qui contient l'id de la tâche JBPM. Par défaut ce nom est <literal>\"taskId\"</literal>, ce qui est aussi le nom par défaut que le composant Seam JSF <literal>taskList</literal> utilise."
#. Tag: literal
#: Annotations.xml:813
#, no-c-format
msgid "@BeginTask"
-msgstr ""
+msgstr "@BeginTask"
#. Tag: programlisting
#: Annotations.xml:816
#, no-c-format
msgid "<![CDATA[@BeginTask]]>"
-msgstr ""
+msgstr "<![CDATA[@BeginTask]]>"
#. Tag: para
#: Annotations.xml:817
#, no-c-format
-msgid ""
-"Resumes work on an incomplete jBPM task. Specifies that a long-running "
-"conversation begins when this method returns a non-null outcome without "
-"exception. This conversation is associated with the jBPM task specified in "
-"the named request parameter. Within the context of this conversation, a "
-"business process context is also defined, for the business process instance "
-"of the task instance."
-msgstr ""
+msgid "Resumes work on an incomplete jBPM task. Specifies that a long-running conversation begins when this method returns a non-null outcome without exception. This conversation is associated with the jBPM task specified in the named request parameter. Within the context of this conversation, a business process context is also defined, for the business process instance of the task instance."
+msgstr "Reprend une tâche JBPM qui n'a pas été terminé. Spécifie aussi qu'une longue conversation démarre lorsque la méthode ainsi annotée a un retour non null sans lever d'exception. La tâche JBPM qui sera associée à ce contexte de conversation sera spécifiée grâce à un paramètre de requête nommé, le buisness process associé à cette tâche est lui aussi associé à cette conversation."
#. Tag: para
#: Annotations.xml:828
#, no-c-format
-msgid ""
-"The jBPM <literal>org.jbpm.taskmgmt.exe.TaskInstance</literal> will be "
-"available in a request context variable named <literal>taskInstance</"
-"literal>. The jPBM <literal>org.jbpm.graph.exe.ProcessInstance</literal> "
-"will be available in a request context variable named "
-"<literal>processInstance</literal>."
-msgstr ""
+msgid "The jBPM <literal>org.jbpm.taskmgmt.exe.TaskInstance</literal> will be available in a request context variable named <literal>taskInstance</literal>. The jPBM <literal>org.jbpm.graph.exe.ProcessInstance</literal> will be available in a request context variable named <literal>processInstance</literal>."
+msgstr "La <literal>org.jbpm.taskmgmt.exe.TaskInstance</literal> JBPM sera disponible dans le context de requète comme une variable dont le nom sera <literal>taskInstance</literal>. Le <literal>org.jbpm.graph.exe.ProcessInstance</literal> sera disponible dans le contexte de requète comme une variable dont le nom sera <literal>processInstance</literal>. "
#. Tag: literal
#: Annotations.xml:859
#, no-c-format
msgid "@EndTask"
-msgstr ""
+msgstr "@EndTask"
#. Tag: programlisting
#: Annotations.xml:862
#, no-c-format
msgid "<![CDATA[@EndTask]]>"
-msgstr ""
+msgstr "<![CDATA[@EndTask]]>"
#. Tag: para
#: Annotations.xml:863
#, no-c-format
-msgid ""
-"\"Ends\" a jBPM task. Specifies that a long-running conversation ends when "
-"this method returns a non-null outcome, and that the current task is "
-"complete. Triggers a jBPM transition. The actual transition triggered will "
-"be the default transition unless the application has called "
-"<literal>Transition.setName()</literal> on the built-in component named "
-"<literal>transition</literal>."
-msgstr ""
+msgid "\"Ends\" a jBPM task. Specifies that a long-running conversation ends when this method returns a non-null outcome, and that the current task is complete. Triggers a jBPM transition. The actual transition triggered will be the default transition unless the application has called <literal>Transition.setName()</literal> on the built-in component named <literal>transition</literal>."
+msgstr "Termine une tache JBPM. Spécifie qu'une conversation longue termine si la méthode ainsi annotée renvoie un résultat non null sans lever d'exception, spécifie aussi que la tâche courante a été complétée. Ceci déclanche alors une transition JBPM. La transition déclanchée sera alors la transition par défaut à moins que l'application n'ait invoqué <literal>Transition.setName()</literal> sur le composant intégré dont le nom est <literal>transition<Literal>."
#. Tag: programlisting
#: Annotations.xml:872
#, no-c-format
msgid "<![CDATA[@EndTask(transition=\"transitionName\")]]>"
-msgstr ""
+msgstr "<![CDATA[@EndTask(transition=\"transitionName\")]]>"
#. Tag: para
#: Annotations.xml:873
#, no-c-format
msgid "Triggers the given jBPM transition."
-msgstr ""
+msgstr "Déclanche la transition JBPM."
#. Tag: para
#: Annotations.xml:878
#, no-c-format
-msgid ""
-"<literal>transition</literal> — the name of the jBPM transition to be "
-"triggered when ending the task. Defaults to the default transition."
-msgstr ""
+msgid "<literal>transition</literal> — the name of the jBPM transition to be triggered when ending the task. Defaults to the default transition."
+msgstr "<literal>transition</literal> — le nom de la transiton qui sera déclanchée lorsque l'on terminera la tâche. Si non spécifiée, c'est la transition par défaut qui sera utilisée."
#. Tag: literal
#: Annotations.xml:900
#, no-c-format
msgid "@CreateProcess"
-msgstr ""
+msgstr "@CreateProcess"
#. Tag: programlisting
#: Annotations.xml:903
#, no-c-format
msgid "<![CDATA[@CreateProcess(definition=\"process definition name\")]]>"
-msgstr ""
+msgstr "<![CDATA[@CreateProcess(definition=\"process definition name\")]]>"
#. Tag: para
#: Annotations.xml:904
#, no-c-format
-msgid ""
-"Creates a new jBPM process instance when the method returns a non-null "
-"outcome without exception. The <literal>ProcessInstance</literal> object "
-"will be available in a context variable named <literal>processInstance</"
-"literal>."
-msgstr ""
+msgid "Creates a new jBPM process instance when the method returns a non-null outcome without exception. The <literal>ProcessInstance</literal> object will be available in a context variable named <literal>processInstance</literal>."
+msgstr "Crée une nouvelle instance d'un JBPM process lorsque la méthode ainsi annotée retourne un résultat non null sans lever d'exception L'object <literal>ProcessInstance</literal> sera disponible dans une variable de contexte nomée <literal>processInstance</literal>."
#. Tag: para
#: Annotations.xml:913
#, no-c-format
-msgid ""
-"<literal>definition</literal> — the name of the jBPM process "
-"definition deployed via <literal>org.jboss.seam.bpm.jbpm.processDefinitions</"
-"literal>."
-msgstr ""
+msgid "<literal>definition</literal> — the name of the jBPM process definition deployed via <literal>org.jboss.seam.bpm.jbpm.processDefinitions</literal>."
+msgstr "<literal>definition</literal> — le nom du process JBPM qui sera déployé via <literal>org.jboss.seam.bpm.jbpm.processDefinitions</literal>."
#. Tag: literal
#: Annotations.xml:924
#, no-c-format
msgid "@ResumeProcess"
-msgstr ""
+msgstr "@ResumeProcess"
#. Tag: programlisting
#: Annotations.xml:927
#, no-c-format
msgid "<![CDATA[@ResumeProcess(processIdParameter=\"processId\")]]>"
-msgstr ""
+msgstr "<![CDATA[@ResumeProcess(processIdParameter=\"processId\")]]>"
#. Tag: para
#: Annotations.xml:928
#, no-c-format
-msgid ""
-"Re-enters the scope of an existing jBPM process instance when the method "
-"returns a non-null outcome without exception. The <literal>ProcessInstance</"
-"literal> object will be available in a context variable named "
-"<literal>processInstance</literal>."
-msgstr ""
+msgid "Re-enters the scope of an existing jBPM process instance when the method returns a non-null outcome without exception. The <literal>ProcessInstance</literal> object will be available in a context variable named <literal>processInstance</literal>."
+msgstr "Ré-entre dans le scope d'une instance de process JBPM lorsque la méthode ainsi annotée renvoie une valeur non null sans lever d'exception. L'object <literal>ProcessInstance</literal> sera alors accessible grâce à une variable de contexte nomée <literal>processInstance</literal>."
#. Tag: para
#: Annotations.xml:937
#, no-c-format
-msgid ""
-"<literal>processIdParameter</literal> — the name a request parameter "
-"holding the process id. Default to <literal>\"processId\"</literal>."
-msgstr ""
+msgid "<literal>processIdParameter</literal> — the name a request parameter holding the process id. Default to <literal>\"processId\"</literal>."
+msgstr "<literal>processIdParameter</literal> — défini le nom du paramètre http qui détient l'id du process. Par défaut on utilise <literal>\"processId\"</literal>."
#. Tag: literal
#: Annotations.xml:949
#, no-c-format
msgid "@Transition"
-msgstr ""
+msgstr "@Transition"
#. Tag: programlisting
#: Annotations.xml:952
#, no-c-format
msgid "<![CDATA[@Transition(\"cancel\")]]>"
-msgstr ""
+msgstr "<![CDATA[@Transition(\"cancel\")]]>"
#. Tag: para
#: Annotations.xml:953
#, no-c-format
-msgid ""
-"Marks a method as signalling a transition in the current jBPM process "
-"instance whenever the method returns a non-null result."
-msgstr ""
+msgid "Marks a method as signalling a transition in the current jBPM process instance whenever the method returns a non-null result."
+msgstr "Une méthode ainsi annotée déclenche une transition au sein du contexte JBPM courant à chaque fois qu'elle renvoie une valeur non null."
#. Tag: title
#: Annotations.xml:964
#, no-c-format
msgid "Annotations for use with Seam JavaBean components in a J2EE environment"
-msgstr ""
+msgstr "Les annotations utilisées avec les composants JavaBean Seam dans une environnement JEE"
#. Tag: para
#: Annotations.xml:965
#, no-c-format
-msgid ""
-"Seam provides an annotation that lets you force a rollback of the JTA "
-"transaction for certain action listener outcomes."
-msgstr ""
+msgid "Seam provides an annotation that lets you force a rollback of the JTA transaction for certain action listener outcomes."
+msgstr "Seam met à disposition des annotations qui permettent de forcer un rollback JTA en fonction des retours renvoyer par un listener."
#. Tag: literal
#: Annotations.xml:973
#, no-c-format
msgid "@Transactional"
-msgstr ""
+msgstr "@Transactional"
#. Tag: programlisting
#: Annotations.xml:976
#, no-c-format
msgid "<![CDATA[@Transactional]]>"
-msgstr ""
+msgstr "<![CDATA[@Transactional]]>"
#. Tag: para
#: Annotations.xml:977
#, no-c-format
-msgid ""
-"Specifies that a JavaBean component should have a similar transactional "
-"behavior to the default behavior of a session bean component. ie. method "
-"invocations should take place in a transaction, and if no transaction exists "
-"when the method is called, a transaction will be started just for that "
-"method. This annotation may be applied at either class or method level."
-msgstr ""
+msgid "Specifies that a JavaBean component should have a similar transactional behavior to the default behavior of a session bean component. ie. method invocations should take place in a transaction, and if no transaction exists when the method is called, a transaction will be started just for that method. This annotation may be applied at either class or method level."
+msgstr "Spécifie que le composant JavaBean doit avoir un comportement similaire à celui d'un bean session. C'est à dire que l'invocation de la méthode doit rejoindre une transaction, et si aucune transaction n'existe lors de la l'appel de la méthode, une transaction sera crée juste pour cette méthode. Cette annotation peut s'appliquer au niveau de la classe toute entière ou au niveau d'une méthode."
#. Tag: emphasis
#: Annotations.xml:986
#, no-c-format
-msgid ""
-"Do not use this annotation on EJB 3.0 components, use "
-"<literal>@TransactionAttribute</literal>!"
-msgstr ""
+msgid "Do not use this annotation on EJB 3.0 components, use <literal>@TransactionAttribute</literal>!"
+msgstr "N'utiliser pas cette annotation sur un composant EJB 3.0, utiliser<literal>@TransactionAttribute</literal>!"
#. Tag: literal
#: Annotations.xml:993
#, no-c-format
msgid "@ApplicationException"
-msgstr ""
+msgstr "@ApplicationException"
#. Tag: programlisting
#: Annotations.xml:996
#, no-c-format
msgid "<![CDATA[@ApplicationException]]>"
-msgstr ""
+msgstr "<![CDATA[@ApplicationException]]>"
#. Tag: para
#: Annotations.xml:997
#, no-c-format
-msgid ""
-"Synonym for javax.ejb.ApplicationException, for use in a pre Java EE 5 "
-"environment. Applied to an exception to denote that it is an application "
-"exception and should be reported to the client directly(i.e., unwrapped)."
-msgstr ""
+msgid "Synonym for javax.ejb.ApplicationException, for use in a pre Java EE 5 environment. Applied to an exception to denote that it is an application exception and should be reported to the client directly(i.e., unwrapped)."
+msgstr "Synonyme de javax.ejb.ApplicationException, à utiliser dans les environnements pre Java EE 5. Elle est appliquéee sur une exception pour qualifier l'exception \"d'exception applicative\" et doit être remontée directement au client (c'est à dire sans être encapsulée)."
#. Tag: para
#: Annotations.xml:1003
#, no-c-format
-msgid ""
-"<emphasis>Do not use this annotation on EJB 3.0 components, use "
-"<literal>@javax.ejb.ApplicationException</literal> instead</emphasis>."
-msgstr ""
+msgid "<emphasis>Do not use this annotation on EJB 3.0 components, use <literal>@javax.ejb.ApplicationException</literal> instead</emphasis>."
+msgstr "<emphasis>N'utiliser pas cette annotation sur les composants EJB 3.0, utiliser à la place <literal>@javax.ejb.ApplicationException</literal> instead</emphasis>."
#. Tag: para
#: Annotations.xml:1010
#, no-c-format
-msgid ""
-"<literal>rollback</literal> — by default <literal>false</literal>, if "
-"<literal>true</literal> this exception should set the transaction to "
-"rollback only"
-msgstr ""
+msgid "<literal>rollback</literal> — by default <literal>false</literal>, if <literal>true</literal> this exception should set the transaction to rollback only"
+msgstr "<literal>rollback</literal> — <literal>false</literal> par défaut, si <literal>true</literal> l'exception doit passer la transaction à rollback only"
#. Tag: para
#: Annotations.xml:1018
#, no-c-format
-msgid ""
-"<literal>end</literal> — by default <literal>false</literal>, if "
-"<literal>true</literal> this exception should end the current long-running "
-"conversation"
-msgstr ""
+msgid "<literal>end</literal> — by default <literal>false</literal>, if <literal>true</literal> this exception should end the current long-running conversation"
+msgstr "<literal>end</literal> —<literal>false</literal> par défaut, si <literal>true</literal> l'exception doit terminer la conversation longue"
#. Tag: literal
#: Annotations.xml:1030
#, no-c-format
msgid "@Interceptors"
-msgstr ""
+msgstr "@Interceptors"
#. Tag: programlisting
#: Annotations.xml:1033
#, no-c-format
msgid "<![CDATA[@Interceptors({DVDInterceptor, CDInterceptor})]]>"
-msgstr ""
+msgstr "<![CDATA[@Interceptors({DVDInterceptor, CDInterceptor})]]>"
#. Tag: para
#: Annotations.xml:1034
#, no-c-format
-msgid ""
-"Synonym for javax.interceptors.Interceptors, for use in a pre Java EE 5 "
-"environment. Note that this may only be used as a meta-annotation. Declares "
-"an ordered list of interceptors for a class or method."
-msgstr ""
+msgid "Synonym for javax.interceptors.Interceptors, for use in a pre Java EE 5 environment. Note that this may only be used as a meta-annotation. Declares an ordered list of interceptors for a class or method."
+msgstr "Synonyme de javax.interceptors.Interceptors, à utiliser dans les environnements pre Java EE 5. Remarquer que c'est à utiliser comme une meta-annotation. Declare une liste d'intercepteurs pour une classe ou une méthode."
#. Tag: para
#: Annotations.xml:1040
#, no-c-format
-msgid ""
-"<emphasis>Do not use this annotations on EJB 3.0 components, use "
-"<literal>@javax.interceptor.Interceptors</literal> instead</emphasis>."
-msgstr ""
+msgid "<emphasis>Do not use this annotations on EJB 3.0 components, use <literal>@javax.interceptor.Interceptors</literal> instead</emphasis>."
+msgstr "<emphasis>n'utiliser pas cette annotation sur les composants EJB 3.0, utiliser <literal>@javax.interceptor.Interceptors</literal> à la place</emphasis>."
#. Tag: para
#: Annotations.xml:1049
#, no-c-format
-msgid ""
-"These annotations are mostly useful for JavaBean Seam components. If you use "
-"EJB 3.0 components, you should use the standard Java EE5 annotation."
-msgstr ""
+msgid "These annotations are mostly useful for JavaBean Seam components. If you use EJB 3.0 components, you should use the standard Java EE5 annotation."
+msgstr "Ces annotations sont essentiellement utilisées pour les composants Seam JavaBean. Si vous utiliser des composants EJB 3.0, vous devriez plutôt utiliser les annotations standards Java EE5."
#. Tag: title
#: Annotations.xml:1057
#, no-c-format
msgid "Annotations for exceptions"
-msgstr ""
+msgstr "Les annotations pour les exceptions"
#. Tag: para
#: Annotations.xml:1059
#, no-c-format
-msgid ""
-"These annotations let you specify how Seam should handle an exception that "
-"propagates out of a Seam component."
-msgstr ""
+msgid "These annotations let you specify how Seam should handle an exception that propagates out of a Seam component."
+msgstr "Ces annotations vous permettent de spécifier comment Seam doit prendre en charge les exceptions qui se propagent hors d'un composant Seam."
#. Tag: literal
#: Annotations.xml:1067
#, no-c-format
msgid "@Redirect"
-msgstr ""
+msgstr "@Redirect"
#. Tag: programlisting
#: Annotations.xml:1070
#, no-c-format
msgid "<![CDATA[@Redirect(viewId=\"error.jsp\")]]>"
-msgstr ""
+msgstr "<![CDATA[@Redirect(viewId=\"error.jsp\")]]>"
#. Tag: para
#: Annotations.xml:1071
#, no-c-format
-msgid ""
-"Specifies that the annotated exception causes a browser redirect to a "
-"specified view id."
-msgstr ""
+msgid "Specifies that the annotated exception causes a browser redirect to a specified view id."
+msgstr "Spécifie que l'exception annotée provoque une redirection du navigateur vers la vue ayant pour id viewID"
#. Tag: para
#: Annotations.xml:1077
#, no-c-format
-msgid ""
-"<literal>viewId</literal> — specifies the JSF view id to redirect to. "
-"You can use EL here."
-msgstr ""
+msgid "<literal>viewId</literal> — specifies the JSF view id to redirect to. You can use EL here."
+msgstr "<literal>viewId</literal> — spécifie la vue JSF vers laquelle if faut faire la redirection. Vous pouvez utiliser ici une expression EL."
#. Tag: para
#: Annotations.xml:1083
#, no-c-format
-msgid ""
-"<literal>message</literal> — a message to be displayed, default to the "
-"exception message."
-msgstr ""
+msgid "<literal>message</literal> — a message to be displayed, default to the exception message."
+msgstr "<literal>message</literal> — le message qui doit être présenté, si non spécifié c'est le message par défaut qui est utilisé."
#. Tag: para
-#: Annotations.xml:1089 Annotations.xml:1122
+#: Annotations.xml:1089
+#: Annotations.xml:1122
#, no-c-format
-msgid ""
-"<literal>end</literal> — specifies that the long-running conversation "
-"should end, default to <literal>false</literal>."
-msgstr ""
+msgid "<literal>end</literal> — specifies that the long-running conversation should end, default to <literal>false</literal>."
+msgstr "<literal>end</literal> — spécifie que la longue conversation en cours doit se terminer, <literal>false</literal> par défaut."
#. Tag: literal
#: Annotations.xml:1100
#, no-c-format
msgid "@HttpError"
-msgstr ""
+msgstr "@HttpError"
#. Tag: programlisting
#: Annotations.xml:1103
#, no-c-format
msgid "<![CDATA[@HttpError(errorCode=404)]]>"
-msgstr ""
+msgstr "<![CDATA[@HttpError(errorCode=404)]]>"
#. Tag: para
#: Annotations.xml:1104
#, no-c-format
msgid "Specifies that the annotated exception causes a HTTP error to be sent."
-msgstr ""
+msgstr "Spécifie que l'exception annotées cause l'envoie d'une 'erreur HTTP."
#. Tag: para
#: Annotations.xml:1110
#, no-c-format
-msgid ""
-"<literal>errorCode</literal> — the HTTP error code, default to "
-"<literal>500</literal>."
-msgstr ""
+msgid "<literal>errorCode</literal> — the HTTP error code, default to <literal>500</literal>."
+msgstr "<literal>errorCode</literal> — le code de l'erreur HTTP, <literal>500</literal> par défaut."
#. Tag: para
#: Annotations.xml:1116
#, no-c-format
-msgid ""
-"<literal>message</literal> — a message to be sent with the HTTP error, "
-"default to the exception message."
-msgstr ""
+msgid "<literal>message</literal> — a message to be sent with the HTTP error, default to the exception message."
+msgstr "<literal>message</literal> — un message devant acompagner l'erreur HTTP, par défaut on utilise le message de l'exception."
#. Tag: title
#: Annotations.xml:1135
#, no-c-format
msgid "Annotations for Seam Remoting"
-msgstr ""
+msgstr "Les annotations pour Seam Remoting"
#. Tag: para
#: Annotations.xml:1136
#, no-c-format
-msgid ""
-"Seam Remoting requires that the local interface of a session bean be "
-"annotated with the following annotation:"
-msgstr ""
+msgid "Seam Remoting requires that the local interface of a session bean be annotated with the following annotation:"
+msgstr "Seam remoting exige que les interfaces locale d'un bean de session soient annotées avec les annotations suivantes :"
#. Tag: literal
#: Annotations.xml:1144
#, no-c-format
msgid "@WebRemote"
-msgstr ""
+msgstr "@WebRemote"
#. Tag: programlisting
#: Annotations.xml:1147
#, no-c-format
msgid "<![CDATA[@WebRemote(exclude=\"path.to.exclude\")]]>"
-msgstr ""
+msgstr "<![CDATA[@WebRemote(exclude=\"path.to.exclude\")]]>"
#. Tag: para
#: Annotations.xml:1148
#, no-c-format
-msgid ""
-"Indicates that the annotated method may be called from client-side "
-"JavaScript. The <literal>exclude</literal> property is optional and allows "
-"objects to be excluded from the result's object graph (see the Remoting "
-"chapter for more details)."
-msgstr ""
+msgid "Indicates that the annotated method may be called from client-side JavaScript. The <literal>exclude</literal> property is optional and allows objects to be excluded from the result's object graph (see the Remoting chapter for more details)."
+msgstr "Indiqye que la méthode annotée peut être appelée depuis le code client JavaScript. La propriétété <literal>exclude</literal> est optionnelle, elle permet aux objets d'être exclu du graphe résultant (voir le chapitre Remoting pour plus de détails)."
#. Tag: title
#: Annotations.xml:1162
#, no-c-format
msgid "Annotations for Seam interceptors"
-msgstr ""
+msgstr "Les annotations pour les intercepteurs de Seam."
#. Tag: para
#: Annotations.xml:1163
#, no-c-format
msgid "The following annotations appear on Seam interceptor classes."
-msgstr ""
+msgstr "Les annotations suivantes sont utilisées pour les intercepteurs Seam."
#. Tag: para
#: Annotations.xml:1166
#, no-c-format
-msgid ""
-"Please refer to the documentation for the EJB 3.0 specification for "
-"information about the annotations required for EJB interceptor definition."
-msgstr ""
+msgid "Please refer to the documentation for the EJB 3.0 specification for information about the annotations required for EJB interceptor definition."
+msgstr "Nous vous demandons de vous référer à la documentation EJB 3.0 pour connaître les spécifications des intercepteurs EJB."
#. Tag: literal
#: Annotations.xml:1174
#, no-c-format
msgid "@Interceptor"
-msgstr ""
+msgstr "@Interceptor"
#. Tag: programlisting
#: Annotations.xml:1177
#, no-c-format
msgid "<![CDATA[@Interceptor(stateless=true)]]>"
-msgstr ""
+msgstr "<![CDATA[@Interceptor(stateless=true)]]>"
#. Tag: para
#: Annotations.xml:1178
#, no-c-format
-msgid ""
-"Specifies that this interceptor is stateless and Seam may optimize "
-"replication."
-msgstr ""
+msgid "Specifies that this interceptor is stateless and Seam may optimize replication."
+msgstr "Spécifie que l'intercepteur est stateless et que Seam pourra optimiser leur réplication."
#. Tag: programlisting
#: Annotations.xml:1182
#, no-c-format
msgid "<![CDATA[@Interceptor(type=CLIENT)]]>"
-msgstr ""
+msgstr "<![CDATA[@Interceptor(type=CLIENT)]]>"
#. Tag: para
#: Annotations.xml:1183
#, no-c-format
-msgid ""
-"Specifies that this interceptor is a \"client-side\" interceptor that is "
-"called before the EJB container."
-msgstr ""
+msgid "Specifies that this interceptor is a \"client-side\" interceptor that is called before the EJB container."
+msgstr "Spécifie que c'est un intercepteur \"coté client\" qui est appelé avant le conteneur EJB. "
#. Tag: programlisting
#: Annotations.xml:1187
#, no-c-format
-msgid ""
-"<![CDATA[(a)Interceptor(around={SomeInterceptor.class, OtherInterceptor."
-"class})]]>"
-msgstr ""
+msgid "<![CDATA[(a)Interceptor(around={SomeInterceptor.class, OtherInterceptor.class})]]>"
+msgstr "<![CDATA[(a)Interceptor(around={SomeInterceptor.class, OtherInterceptor.class})]]>"
#. Tag: para
#: Annotations.xml:1188
#, no-c-format
-msgid ""
-"Specifies that this interceptor is positioned higher in the stack than the "
-"given interceptors."
-msgstr ""
+msgid "Specifies that this interceptor is positioned higher in the stack than the given interceptors."
+msgstr "Spécifie que l'intercepteur est positionné plus haut dans la pile d'intercepteurs que les intercepteurs cités dans l'énumération."
#. Tag: programlisting
#: Annotations.xml:1192
#, no-c-format
-msgid ""
-"<![CDATA[(a)Interceptor(within={SomeInterceptor.class, OtherInterceptor."
-"class})]]>"
-msgstr ""
+msgid "<![CDATA[(a)Interceptor(within={SomeInterceptor.class, OtherInterceptor.class})]]>"
+msgstr "<![CDATA[(a)Interceptor(within={SomeInterceptor.class, OtherInterceptor.class})]]>"
#. Tag: para
#: Annotations.xml:1193
#, no-c-format
-msgid ""
-"Specifies that this interceptor is positioned deeper in the stack than the "
-"given interceptors."
-msgstr ""
+msgid "Specifies that this interceptor is positioned deeper in the stack than the given interceptors."
+msgstr "Spécifie que l'intercepteur est positionné plus bas dans la pile d'intercepteurs que les intercepteurs cités dans l'énumération."
#. Tag: title
#: Annotations.xml:1204
#, no-c-format
msgid "Annotations for asynchronicity"
-msgstr ""
+msgstr "Les annotations pour l'asynchronicité"
#. Tag: para
#: Annotations.xml:1205
#, no-c-format
-msgid ""
-"The following annotations are used to declare an asynchronous method, for "
-"example:"
-msgstr ""
+msgid "The following annotations are used to declare an asynchronous method, for example:"
+msgstr "Les annotations suivantes sont utilisées pour déclarer des méthodes asynchrones, par exemple:"
#. Tag: programlisting
#: Annotations.xml:1210
#, no-c-format
-msgid ""
-"<![CDATA[@Asynchronous public void scheduleAlert(Alert alert, @Expiration "
-"Date date) { ... }]]>"
-msgstr ""
+msgid "<![CDATA[@Asynchronous public void scheduleAlert(Alert alert, @Expiration Date date) { ... }]]>"
+msgstr "<![CDATA[@Asynchronous public void scheduleAlert(Alert alert, @Expiration Date date) { ... }]]>"
#. Tag: programlisting
#: Annotations.xml:1211
@@ -1730,438 +1404,362 @@
" @Expiration Date date, \n"
" @IntervalDuration long interval) { ... }]]>"
msgstr ""
+"<![CDATA[@Asynchronous public Timer scheduleAlerts(Alert alert, \n"
+" @Expiration Date date, \n"
+" @IntervalDuration long interval) { ... }]]>"
#. Tag: literal
#: Annotations.xml:1216
#, no-c-format
msgid "@Asynchronous"
-msgstr ""
+msgstr "@Asynchronous"
#. Tag: programlisting
#: Annotations.xml:1219
#, no-c-format
msgid "<![CDATA[@Asynchronous]]>"
-msgstr ""
+msgstr "<![CDATA[@Asynchronous]]>"
#. Tag: para
#: Annotations.xml:1220
#, no-c-format
msgid "Specifies that the method call is processed asynchronously."
-msgstr ""
+msgstr "Spécifie que l'invocation de la methode a lieu de façon asynchrone."
#. Tag: literal
#: Annotations.xml:1227
#, no-c-format
msgid "@Duration"
-msgstr ""
+msgstr "@Duration"
#. Tag: programlisting
#: Annotations.xml:1230
#, no-c-format
msgid "<![CDATA[@Duration]]>"
-msgstr ""
+msgstr "<![CDATA[@Duration]]>"
#. Tag: para
#: Annotations.xml:1231
#, no-c-format
-msgid ""
-"Specifies that a parameter of the asynchronous call is the duration before "
-"the call is processed (or first processed for recurring calls)."
-msgstr ""
+msgid "Specifies that a parameter of the asynchronous call is the duration before the call is processed (or first processed for recurring calls)."
+msgstr "Spécifie que l'un des paramètres de l'appel asynchrone est la durée avant laquelle l'appel asynchrone aura lieu (ou en cas de récurrence le temps avant le premier appel)"
#. Tag: literal
#: Annotations.xml:1240
#, no-c-format
msgid "@Expiration"
-msgstr ""
+msgstr "@Expiration"
#. Tag: programlisting
#: Annotations.xml:1243
#, no-c-format
msgid "<![CDATA[@Expiration]]>"
-msgstr ""
+msgstr "<![CDATA[@Expiration]]>"
#. Tag: para
#: Annotations.xml:1244
#, no-c-format
-msgid ""
-"Specifies that a parameter of the asynchronous call is the datetime at which "
-"the call is processed (or first processed for recurring calls)."
-msgstr ""
+msgid "Specifies that a parameter of the asynchronous call is the datetime at which the call is processed (or first processed for recurring calls)."
+msgstr "Spécifie que l'un des paramètres de l'appel asynchrone est la date à laquelle l'appel asynchrone aura lieu (ou en cas de récurrence le temps avant le premier appel)"
#. Tag: literal
#: Annotations.xml:1253
#, no-c-format
msgid "@IntervalDuration"
-msgstr ""
+msgstr "@IntervalDuration"
#. Tag: programlisting
#: Annotations.xml:1256
#, no-c-format
msgid "<![CDATA[@IntervalDuration]]>"
-msgstr ""
+msgstr "<![CDATA[@IntervalDuration]]>"
#. Tag: para
#: Annotations.xml:1257
#, no-c-format
-msgid ""
-"Specifies that an asynchronous method call recurs, and that the annotationed "
-"parameter is duration between recurrences."
-msgstr ""
+msgid "Specifies that an asynchronous method call recurs, and that the annotationed parameter is duration between recurrences."
+msgstr "Spécifie que l'appel asynchrone de la méthode est récurrent, et que le paramètre annoté est la durée entre chaque appel."
#. Tag: title
#: Annotations.xml:1267
#, no-c-format
msgid "Annotations for use with JSF"
-msgstr ""
+msgstr "Les annotations utilisés avec JSF"
#. Tag: para
#: Annotations.xml:1268
#, no-c-format
msgid "The following annotations make working with JSF easier."
-msgstr ""
+msgstr "Les annotations suivantes permettent de travailler plus facilement avec JSF."
#. Tag: literal
#: Annotations.xml:1275
#, no-c-format
msgid "@Converter"
-msgstr ""
+msgstr "@Converter"
#. Tag: para
#: Annotations.xml:1278
#, no-c-format
-msgid ""
-"Allows a Seam component to act as a JSF converter. The annotated class must "
-"be a Seam component, and must implement <literal>javax.faces.convert."
-"Converter</literal>."
-msgstr ""
+msgid "Allows a Seam component to act as a JSF converter. The annotated class must be a Seam component, and must implement <literal>javax.faces.convert.Converter</literal>."
+msgstr "Permet à un composant Seam d'agir comme un converter. La classe annoté doit être un composant Seam, et doit implémenter <literal>javax.faces.convert.Converter</literal>."
#. Tag: para
#: Annotations.xml:1285
#, no-c-format
-msgid ""
-"<literal>id</literal> — the JSF converter id. Defaults to the "
-"component name."
-msgstr ""
+msgid "<literal>id</literal> — the JSF converter id. Defaults to the component name."
+msgstr "<literal>id</literal> — l'id du converter JSF. Par défaut c'est le nom du composant qui est utilisé."
#. Tag: para
#: Annotations.xml:1291
#, no-c-format
-msgid ""
-"<literal>forClass</literal> — if specified, register this component as "
-"the default converter for a type."
-msgstr ""
+msgid "<literal>forClass</literal> — if specified, register this component as the default converter for a type."
+msgstr "<literal>forClass</literal> — si spécifié, enregistre le composant comme le converter par défaut pour ce type."
#. Tag: literal
#: Annotations.xml:1302
#, no-c-format
msgid "@Validator"
-msgstr ""
+msgstr "@Validator"
#. Tag: para
#: Annotations.xml:1305
#, no-c-format
-msgid ""
-"Allows a Seam component to act as a JSF validator. The annotated class must "
-"be a Seam component, and must implement <literal>javax.faces.validator."
-"Validator</literal>."
-msgstr ""
+msgid "Allows a Seam component to act as a JSF validator. The annotated class must be a Seam component, and must implement <literal>javax.faces.validator.Validator</literal>."
+msgstr "Permet à un composant Seam d'agir comme un validator. La classe annotée doit être un composant Seam, et doit implémenter <literal>javax.faces.validator.Validator</literal>."
#. Tag: para
#: Annotations.xml:1312
#, no-c-format
-msgid ""
-"<literal>id</literal> — the JSF validator id. Defaults to the "
-"component name."
-msgstr ""
+msgid "<literal>id</literal> — the JSF validator id. Defaults to the component name."
+msgstr "<literal>id</literal> — l'id JSF du validator. Par défaut c'est le nom du composant qui est utilisé."
#. Tag: title
#: Annotations.xml:1323
#, no-c-format
msgid "Annotations for use with <literal>dataTable</literal>"
-msgstr ""
+msgstr "Les annotations pour <literal>dataTable</literal>"
#. Tag: para
#: Annotations.xml:1324
#, no-c-format
-msgid ""
-"The following annotations make it easy to implement clickable lists backed "
-"by a stateful session bean. They appear on attributes."
-msgstr ""
+msgid "The following annotations make it easy to implement clickable lists backed by a stateful session bean. They appear on attributes."
+msgstr "Les annotations suivantes facilitent l'implémentations de listes cliquables référencées par des bean session stateful Ils apparaissent sur les attributs."
#. Tag: literal
#: Annotations.xml:1333
#, no-c-format
msgid "@DataModel"
-msgstr ""
+msgstr "@DataModel"
#. Tag: programlisting
#: Annotations.xml:1336
#, no-c-format
msgid "<![CDATA[@DataModel(\"variableName\")]]>"
-msgstr ""
+msgstr "<![CDATA[@DataModel(\"variableName\")]]>"
#. Tag: para
#: Annotations.xml:1337
#, no-c-format
-msgid ""
-"Outjects a property of type <literal>List</literal>, <literal>Map</literal>, "
-"<literal>Set</literal> or <literal>Object[]</literal> as a JSF "
-"<literal>DataModel</literal> into the scope of the owning component (or the "
-"<literal>EVENT</literal> scope if the owning component is "
-"<literal>STATELESS</literal>). In the case of <literal>Map</literal>, each "
-"row of the <literal>DataModel</literal> is a <literal>Map.Entry</literal>."
-msgstr ""
+msgid "Outjects a property of type <literal>List</literal>, <literal>Map</literal>, <literal>Set</literal> or <literal>Object[]</literal> as a JSF <literal>DataModel</literal> into the scope of the owning component (or the <literal>EVENT</literal> scope if the owning component is <literal>STATELESS</literal>). In the case of <literal>Map</literal>, each row of the <literal>DataModel</literal> is a <literal>Map.Entry</literal>."
+msgstr "Expose une propriété de type <literal>List</literal>, <literal>Map</literal>, <literal>Set</literal> ou <literal>Object[]</literal> comme un <literal>DataModel</literal> JSF dans le scope du composant qui le porte (ou dans le scope <literal>EVENT</literal>si le scope du composant porteur est <literal>STATELESS</literal>). dans le cas d'une <literal>Map</literal>, chaque ligne du <literal>DataModel</literal> est une <literal>Map.Entry</literal>."
#. Tag: para
#: Annotations.xml:1350
#, no-c-format
-msgid ""
-"<literal>value</literal> — name of the conversation context variable. "
-"Default to the attribute name."
-msgstr ""
+msgid "<literal>value</literal> — name of the conversation context variable. Default to the attribute name."
+msgstr "<literal>value</literal> — nom de la variable dans le context de conversation. Par défaut on utilise le nom de l'attribut."
#. Tag: para
#: Annotations.xml:1357
#, no-c-format
-msgid ""
-"<literal>scope</literal> — if <literal>scope=ScopeType.PAGE</literal> "
-"is explicitly specified, the <literal>DataModel</literal> will be kept in "
-"the <literal>PAGE</literal> context."
-msgstr ""
+msgid "<literal>scope</literal> — if <literal>scope=ScopeType.PAGE</literal> is explicitly specified, the <literal>DataModel</literal> will be kept in the <literal>PAGE</literal> context."
+msgstr "<literal>scope</literal> — si <literal>scope=ScopeType.PAGE</literal> ext explicitemnt spécifié, le <literal>DataModel</literal> sera conservé dans le contexte <literal>PAGE</literal>."
#. Tag: literal
#: Annotations.xml:1369
#, no-c-format
msgid "@DataModelSelection"
-msgstr ""
+msgstr "@DataModelSelection"
#. Tag: programlisting
#: Annotations.xml:1372
#, no-c-format
msgid "<![CDATA[@DataModelSelection]]>"
-msgstr ""
+msgstr "<![CDATA[@DataModelSelection]]>"
#. Tag: para
#: Annotations.xml:1373
#, no-c-format
-msgid ""
-"Injects the selected value from the JSF <literal>DataModel</literal> (this "
-"is the element of the underlying collection, or the map value). If only one "
-"<literal>@DataModel</literal> attribute is defined for a component, the "
-"selected value from that <literal>DataModel</literal> will be injected. "
-"Otherwise, the component name of each <literal>@DataModel</literal> must be "
-"specified in the value attribute for each <literal>@DataModelSelection</"
-"literal>."
-msgstr ""
+msgid "Injects the selected value from the JSF <literal>DataModel</literal> (this is the element of the underlying collection, or the map value). If only one <literal>@DataModel</literal> attribute is defined for a component, the selected value from that <literal>DataModel</literal> will be injected. Otherwise, the component name of each <literal>@DataModel</literal> must be specified in the value attribute for each <literal>@DataModelSelection</literal>."
+msgstr "Injecte la valeur du <literal>DataModel</literal> qui a été selectionnée (c'est a dire l'élément de la collection sous-jacente, ou de la map). Si un seul attribut <literal>@DataModel</literal> est défini sur le composant, la valeur sélectionnée du <literal>DataModel</literal> sera injectée. Le nom de chaque <literal>@DataModel</literal> doit être spécifié pour chaque <literal>@DataModelSelection</literal>."
#. Tag: para
#: Annotations.xml:1385
#, no-c-format
-msgid ""
-"If <literal>PAGE</literal> scope is specified on the associated "
-"<literal>@DataModel</literal>, then, in addition to the DataModel Selection "
-"being injected, the associated DataModel will also be injected. In this "
-"case, if the property annotated with <literal>@DataModel</literal> is a "
-"getter method, then a setter method for the property must also be part of "
-"the Business API of the containing Seam Component."
-msgstr ""
+msgid "If <literal>PAGE</literal> scope is specified on the associated <literal>@DataModel</literal>, then, in addition to the DataModel Selection being injected, the associated DataModel will also be injected. In this case, if the property annotated with <literal>@DataModel</literal> is a getter method, then a setter method for the property must also be part of the Business API of the containing Seam Component."
+msgstr "Si le scope <literal>PAGE</literal> est spécifié pour le <literal>@DataModel</literal>, alors le DataModelSelection sera non seulement injecté mais aussi le DataModel , donc si l'attribut <literal>@DataModel</literal> annote une méthode getter, alors le composant devra aussi exposer un setter public."
#. Tag: para
-#: Annotations.xml:1397 Annotations.xml:1427
+#: Annotations.xml:1397
+#: Annotations.xml:1427
#, no-c-format
-msgid ""
-"<literal>value</literal> — name of the conversation context variable. "
-"Not needed if there is exactly one <literal>@DataModel</literal> in the "
-"component."
-msgstr ""
+msgid "<literal>value</literal> — name of the conversation context variable. Not needed if there is exactly one <literal>@DataModel</literal> in the component."
+msgstr "<literal>value</literal> — nom de la variable dans le contexte de conversation. Il n'est pas necessaire de le spécifier si il n'y a qu'un <literal>@DataModel</literal> sur le composant."
#. Tag: literal
#: Annotations.xml:1409
#, no-c-format
msgid "@DataModelSelectionIndex"
-msgstr ""
+msgstr "@DataModelSelectionIndex"
#. Tag: programlisting
#: Annotations.xml:1412
#, no-c-format
msgid "<![CDATA[@DataModelSelectionIndex]]>"
-msgstr ""
+msgstr "<![CDATA[@DataModelSelectionIndex]]>"
#. Tag: para
#: Annotations.xml:1413
#, no-c-format
-msgid ""
-"Exposes the selection index of the JSF <literal>DataModel</literal> as an "
-"attribute of the component (this is the row number of the underlying "
-"collection, or the map key). If only one <literal>@DataModel</literal> "
-"attribute is defined for a component, the selected value from that "
-"<literal>DataModel</literal> will be injected. Otherwise, the component name "
-"of each <literal>@DataModel</literal> must be specified in the value "
-"attribute for each <literal>@DataModelSelectionIndex</literal>."
-msgstr ""
+msgid "Exposes the selection index of the JSF <literal>DataModel</literal> as an attribute of the component (this is the row number of the underlying collection, or the map key). If only one <literal>@DataModel</literal> attribute is defined for a component, the selected value from that <literal>DataModel</literal> will be injected. Otherwise, the component name of each <literal>@DataModel</literal> must be specified in the value attribute for each <literal>@DataModelSelectionIndex</literal>."
+msgstr "Expose l'index de la ligne selectionnée du <literal>DataModel</literal> comme un attribut du composant (c'est le numéro de la ligne de la collection sous-jacente, ou la valeur de la clé si le DataModel est une map). Si un seul attribut <literal>@DataModel</literal> est défini pour ce composant, la valeur selectionnée du<literal>DataModel</literal> sera injectée. Autrement le nom de chaque <literal>@DataModel</literal> doit être spécifié pour chaque <literal>@DataModelSelectionIndex</literal>."
#. Tag: title
#: Annotations.xml:1442
#, no-c-format
msgid "Meta-annotations for databinding"
-msgstr ""
+msgstr "Les metas-annotations pour le databinding"
#. Tag: para
#: Annotations.xml:1443
#, no-c-format
-msgid ""
-"These meta-annotations make it possible to implement similar functionality "
-"to <literal>@DataModel</literal> and <literal>@DataModelSelection</literal> "
-"for other datastructures apart from lists."
-msgstr ""
+msgid "These meta-annotations make it possible to implement similar functionality to <literal>@DataModel</literal> and <literal>@DataModelSelection</literal> for other datastructures apart from lists."
+msgstr "Ces meta-annotations permettent d'implémenter des fonctionnalités similaires à <literal>@DataModel</lietral> et <literal>@DataModelSelection</literal> pour des structures de données différentes des listes."
#. Tag: literal
#: Annotations.xml:1453
#, no-c-format
msgid "@DataBinderClass"
-msgstr ""
+msgstr "@DataBinderClass"
#. Tag: programlisting
#: Annotations.xml:1456
#, no-c-format
msgid "<![CDATA[(a)DataBinderClass(DataModelBinder.class)]]>"
-msgstr ""
+msgstr "<![CDATA[(a)DataBinderClass(DataModelBinder.class)]]>"
#. Tag: para
#: Annotations.xml:1457
#, no-c-format
msgid "Specifies that an annotation is a databinding annotation."
-msgstr ""
+msgstr "Spécifie qu'une annotation est utilisée pour le databinding."
#. Tag: literal
#: Annotations.xml:1464
#, no-c-format
msgid "@DataSelectorClass"
-msgstr ""
+msgstr "@DataSelectorClass"
#. Tag: programlisting
#: Annotations.xml:1467
#, no-c-format
msgid "<![CDATA[(a)DataSelectorClass(DataModelSelector.class)]]>"
-msgstr ""
+msgstr "<![CDATA[(a)DataSelectorClass(DataModelSelector.class)]]>"
#. Tag: para
#: Annotations.xml:1468
#, no-c-format
msgid "Specifies that an annotation is a dataselection annotation."
-msgstr ""
+msgstr "Spécifie qu'une annotation est utilisée pour les dataselection."
#. Tag: title
#: Annotations.xml:1477
#, no-c-format
msgid "Annotations for packaging"
-msgstr ""
+msgstr "Les annotations pour le packaging"
#. Tag: para
#: Annotations.xml:1478
#, no-c-format
-msgid ""
-"This annotation provides a mechanism for declaring information about a set "
-"of components that are packaged together. It can be applied to any Java "
-"package."
-msgstr ""
+msgid "This annotation provides a mechanism for declaring information about a set of components that are packaged together. It can be applied to any Java package."
+msgstr "Cette annotation fournit un mécanisme pour déclarer des informations sur un ensemble de composants qui sont packagés ensembles. Elle s'applique à n'importe quel package Java."
#. Tag: literal
#: Annotations.xml:1488
#, no-c-format
msgid "@Namespace"
-msgstr ""
+msgstr "@Namespace"
#. Tag: programlisting
#: Annotations.xml:1491
#, no-c-format
-msgid ""
-"<![CDATA[@Namespace(value=\"http://jboss.com/products/seam/example/seampay"
-"\")]]>"
-msgstr ""
+msgid "<![CDATA[@Namespace(value=\"http://jboss.com/products/seam/example/seampay\")]]>"
+msgstr "<![CDATA[@Namespace(value=\"http://jboss.com/products/seam/example/seampay\")]]>"
#. Tag: para
#: Annotations.xml:1492
#, no-c-format
-msgid ""
-"Specifies that components in the current package are associated with the "
-"given namespace. The declared namespace can be used as an XML namespace in a "
-"<literal>components.xml</literal> file to simplify application configuration."
-msgstr ""
+msgid "Specifies that components in the current package are associated with the given namespace. The declared namespace can be used as an XML namespace in a <literal>components.xml</literal> file to simplify application configuration."
+msgstr "Spécifie que les composants présents dans le package courants sont associés avec le namespace (espace de nom). Le namespace ainsi déclaré peut-être utilisé directement comme un namespace XML dans un fichier <literal>components.xml</literal> pour simplifier la configuration de l'application."
#. Tag: programlisting
#: Annotations.xml:1498
#, no-c-format
-msgid ""
-"<![CDATA[@Namespace(value=\"http://jboss.com/products/seam/core\", prefix="
-"\"org.jboss.seam.core\")]]>"
-msgstr ""
+msgid "<![CDATA[@Namespace(value=\"http://jboss.com/products/seam/core\", prefix=\"org.jboss.seam.core\")]]>"
+msgstr "<![CDATA[@Namespace(value=\"http://jboss.com/products/seam/core\", prefix=\"org.jboss.seam.core\")]]>"
#. Tag: para
#: Annotations.xml:1499
#, no-c-format
-msgid ""
-"Specifies a namespace to associate with a given package. Additionally, it "
-"specifies a component name prefix to be applied to component names specified "
-"in the XML file. For example, an XML element named <literal>init</literal> "
-"that is associated with this namespace would be understood to actually refer "
-"to a component named <literal>org.jboss.seam.core.init</literal>."
-msgstr ""
+msgid "Specifies a namespace to associate with a given package. Additionally, it specifies a component name prefix to be applied to component names specified in the XML file. For example, an XML element named <literal>init</literal> that is associated with this namespace would be understood to actually refer to a component named <literal>org.jboss.seam.core.init</literal>."
+msgstr "Spécifie l'espace de nommage associé à un package donné. Additionnellement, il spécifie un préfixe à ajouter au nom du composant lors de sa déclaration dans le fichier XML. Par exemple un élément XML noté <literal>init</literal> qui est associé avec cet espace de nommage serait interprété comme se référant au composant nommé <literal>org.jboss.seam.core.init</literal>."
#. Tag: title
#: Annotations.xml:1514
#, no-c-format
msgid "Annotations for integrating with the servlet container"
-msgstr ""
+msgstr "Les annotations pour l'intégration avec le conteneur de Servlets"
#. Tag: para
#: Annotations.xml:1515
#, no-c-format
-msgid ""
-"These annotations allow you to integrate your Seam components with the "
-"servlet container."
-msgstr ""
+msgid "These annotations allow you to integrate your Seam components with the servlet container."
+msgstr "Ces annotations vous permettent d'intégrer vos composants seam avec le conteneur de servlets "
#. Tag: literal
#: Annotations.xml:1524
#, no-c-format
msgid "@Filter"
-msgstr ""
+msgstr "@Filter"
#. Tag: para
#: Annotations.xml:1527
#, no-c-format
-msgid ""
-"Use the Seam component (which implements <literal>javax.servlet.Filter</"
-"literal>) annotated with <literal>@Filter</literal> as a servlet filter. It "
-"will be executed by Seam's master filter."
-msgstr ""
+msgid "Use the Seam component (which implements <literal>javax.servlet.Filter</literal>) annotated with <literal>@Filter</literal> as a servlet filter. It will be executed by Seam's master filter."
+msgstr "Utiliser ce coposant seam (qui devra implémenter <literal>javax.servlet.Filter</literal>) annoté avec <literal>@Filter</literal> comme un filter de servlet. Il sera exécuté par le filtre Seam principal."
#. Tag: programlisting
#: Annotations.xml:1535
#, no-c-format
msgid "<![CDATA[@Filter(around={\"seamComponent\", \"otherSeamComponent\"})]]>"
-msgstr ""
+msgstr "<![CDATA[@Filter(around={\"seamComponent\", \"otherSeamComponent\"})]]>"
#. Tag: para
#: Annotations.xml:1536
#, no-c-format
-msgid ""
-"Specifies that this filter is positioned higher in the stack than the given "
-"filters."
-msgstr ""
+msgid "Specifies that this filter is positioned higher in the stack than the given filters."
+msgstr "Spécifie que le filtre est positionné plus haut dans la pile que la liste des filtres énumérés."
#. Tag: programlisting
#: Annotations.xml:1542
#, no-c-format
msgid "<![CDATA[@Filter(within={\"seamComponent\", \"otherSeamComponent\"})]]>"
-msgstr ""
+msgstr "<![CDATA[@Filter(within={\"seamComponent\", \"otherSeamComponent\"})]]>"
#. Tag: para
#: Annotations.xml:1543
#, no-c-format
-msgid ""
-"Specifies that this filter is positioned deeper in the stack than the given "
-"filters."
-msgstr ""
+msgid "Specifies that this filter is positioned deeper in the stack than the given filters."
+msgstr "Spécifie que le filtre est positionné plus bas dans la pile que la liste des filtres énumérés."
+
16 years, 2 months
Seam SVN: r9251 - trunk/src/main/org/jboss/seam/async.
by seam-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-10-10 05:53:58 -0400 (Fri, 10 Oct 2008)
New Revision: 9251
Modified:
trunk/src/main/org/jboss/seam/async/QuartzDispatcher.java
Log:
JBSEAM-3536, thanks to Bernard Labno
Modified: trunk/src/main/org/jboss/seam/async/QuartzDispatcher.java
===================================================================
--- trunk/src/main/org/jboss/seam/async/QuartzDispatcher.java 2008-10-10 07:36:23 UTC (rev 9250)
+++ trunk/src/main/org/jboss/seam/async/QuartzDispatcher.java 2008-10-10 09:53:58 UTC (rev 9251)
@@ -176,7 +176,7 @@
}
else
{
- SimpleTrigger trigger = new SimpleTrigger(triggerName, null, null,
+ SimpleTrigger trigger = new SimpleTrigger(triggerName, null, new Date(),
timerSchedule.getFinalExpiration(),
SimpleTrigger.REPEAT_INDEFINITELY,
timerSchedule.getIntervalDuration());
16 years, 2 months
Seam SVN: r9250 - in trunk/seam-gen: build-scripts and 4 other directories.
by seam-commits@lists.jboss.org
Author: dan.j.allen
Date: 2008-10-10 03:36:23 -0400 (Fri, 10 Oct 2008)
New Revision: 9250
Modified:
trunk/seam-gen/build-scripts/build-war.xml
trunk/seam-gen/build-scripts/build.xml
trunk/seam-gen/build.xml
trunk/seam-gen/icefaces/build-scripts/build-war.xml
trunk/seam-gen/icefaces/build-scripts/build.xml
trunk/seam-gen/resources/WEB-INF/web.xml
trunk/seam-gen/view/layout/template.xhtml
trunk/seam-gen/view/stylesheet/theme.xcss
Log:
get SeamTest to run under Java 6
disable RichFaces "skinning control" because it adds too much overhead right now
split theme stylesheet into two parts (one static, one dynamic)
Modified: trunk/seam-gen/build-scripts/build-war.xml
===================================================================
--- trunk/seam-gen/build-scripts/build-war.xml 2008-10-10 07:23:48 UTC (rev 9249)
+++ trunk/seam-gen/build-scripts/build-war.xml 2008-10-10 07:36:23 UTC (rev 9250)
@@ -14,6 +14,7 @@
<property name="src.action.dir" value="src/hot" />
<property name="src.test.dir" value="src/test" />
<property name="lib.dir" value="lib" />
+ <property name="endorsed.dir" value="${lib.dir}/endorsed" />
<property name="war.dir" value="exploded-archives/${project.name}.war" />
<property name="classes.model.dir" value="${war.dir}/WEB-INF/classes" />
<property name="action.dir" value="WEB-INF/classes" />
@@ -363,6 +364,8 @@
<path refid="build.classpath" />
</path>
<testng outputdir="${basedir}/test-report">
+ <jvmarg line="-Djava.endorsed.dirs=${endorsed.dir}"/>
+ <jvmarg line="-Dsun.lang.ClassLoader.allowArraySyntax=true"/>
<classpath refid="test.path" />
<xmlfileset dir="${test.dir}" includes="*Test.xml" />
</testng>
Modified: trunk/seam-gen/build-scripts/build.xml
===================================================================
--- trunk/seam-gen/build-scripts/build.xml 2008-10-10 07:23:48 UTC (rev 9249)
+++ trunk/seam-gen/build-scripts/build.xml 2008-10-10 07:36:23 UTC (rev 9250)
@@ -14,6 +14,7 @@
<property name="src.action.dir" value="src/hot" />
<property name="src.test.dir" value="src/test" />
<property name="lib.dir" value="lib" />
+ <property name="endorsed.dir" value="${lib.dir}/endorsed" />
<property name="ear.dir" value="exploded-archives/${project.name}.ear" />
<property name="jar.dir" value="exploded-archives/${project.name}.jar" />
<property name="war.dir" value="exploded-archives/${project.name}.war" />
@@ -378,6 +379,8 @@
<path refid="build.classpath" />
</path>
<testng outputdir="${basedir}/test-report">
+ <jvmarg line="-Djava.endorsed.dirs=${endorsed.dir}"/>
+ <jvmarg line="-Dsun.lang.ClassLoader.allowArraySyntax=true"/>
<classpath refid="test.path" />
<xmlfileset dir="${test.dir}" includes="*Test.xml" />
</testng>
Modified: trunk/seam-gen/build.xml
===================================================================
--- trunk/seam-gen/build.xml 2008-10-10 07:23:48 UTC (rev 9249)
+++ trunk/seam-gen/build.xml 2008-10-10 07:36:23 UTC (rev 9250)
@@ -606,6 +606,19 @@
<fileset file="${driver.jar}"/>
</copy>
+ <!-- we must use an endorsed jars directory for running SeamTest under Java 6 -->
+ <artifact:dependencies filesetId="endorsed.fileset" versionsId="endorsed.versions">
+ <dependency groupId="javax.xml.bind" artifactId="jaxb-api" version="2.1">
+ <exclusion groupId="javax.xml.stream" artifactId="stax-api"/>
+ <exclusion groupId="javax.activation" artifactId="activation"/>
+ </dependency>
+ <remoteRepository refId="repository.jboss.org"/>
+ </artifact:dependencies>
+ <copy todir="${project.home}/lib/endorsed" overwrite="true">
+ <fileset refid="endorsed.fileset"/>
+ <mapper classpathref="maven-ant-tasks.classpath" classname="org.apache.maven.artifact.ant.VersionMapper" from="${endorsed.versions}" to="flatten"/>
+ </copy>
+
<echo message="Copying JBoss Embedded configuration to the ${project.home}/bootstrap directory..."/>
<copy todir="${project.home}/bootstrap" overwrite="true">
<fileset dir="${seam.dir}/bootstrap"/>
@@ -986,6 +999,17 @@
<echo message="Type '${seam.cmd} restart' and go to http://localhost:8080/${project.name}/${page.name}.seam"/>
</target>
+ <!-- FIXME: we ask the user for information that isn't needed for this target -->
+ <target name="new-test" depends="validate-project,action-input,setup-filters" description="Create a new test">
+ <echo message="Creating a new SeamTest subclass for the specified Seam component"/>
+ <copy file="${templates.dir}/test/ActionTest.java" tofile="${test.file}">
+ <filterset refid="filters"/>
+ </copy>
+ <copy file="${templates.dir}/test/testng.xml" tofile="${testng.file}">
+ <filterset refid="filters"/>
+ </copy>
+ </target>
+
<target name="new-query" depends="validate-project,query-input,setup-filters">
<echo message="Creating a new query"/>
<copy file="${templates.dir}/src/Query.java" tofile="${query.file}">
Modified: trunk/seam-gen/icefaces/build-scripts/build-war.xml
===================================================================
--- trunk/seam-gen/icefaces/build-scripts/build-war.xml 2008-10-10 07:23:48 UTC (rev 9249)
+++ trunk/seam-gen/icefaces/build-scripts/build-war.xml 2008-10-10 07:36:23 UTC (rev 9250)
@@ -14,6 +14,7 @@
<property name="src.action.dir" value="src/hot" />
<property name="src.test.dir" value="src/test" />
<property name="lib.dir" value="lib" />
+ <property name="endorsed.dir" value="${lib.dir}/endorsed" />
<property name="war.dir" value="exploded-archives/${project.name}.war" />
<property name="classes.model.dir" value="${war.dir}/WEB-INF/classes" />
<property name="action.dir" value="WEB-INF/classes" />
@@ -357,6 +358,8 @@
<path refid="build.classpath" />
</path>
<testng outputdir="${basedir}/test-report">
+ <jvmarg line="-Djava.endorsed.dirs=${endorsed.dir}"/>
+ <jvmarg line="-Dsun.lang.ClassLoader.allowArraySyntax=true"/>
<classpath refid="test.path" />
<xmlfileset dir="${test.dir}" includes="*Test.xml" />
</testng>
Modified: trunk/seam-gen/icefaces/build-scripts/build.xml
===================================================================
--- trunk/seam-gen/icefaces/build-scripts/build.xml 2008-10-10 07:23:48 UTC (rev 9249)
+++ trunk/seam-gen/icefaces/build-scripts/build.xml 2008-10-10 07:36:23 UTC (rev 9250)
@@ -14,6 +14,7 @@
<property name="src.action.dir" value="src/hot" />
<property name="src.test.dir" value="src/test" />
<property name="lib.dir" value="lib" />
+ <property name="endorsed.dir" value="${lib.dir}/endorsed" />
<property name="ear.dir" value="exploded-archives/${project.name}.ear" />
<property name="jar.dir" value="exploded-archives/${project.name}.jar" />
<property name="war.dir" value="exploded-archives/${project.name}.war" />
@@ -373,6 +374,8 @@
<path refid="build.classpath" />
</path>
<testng outputdir="${basedir}/test-report">
+ <jvmarg line="-Djava.endorsed.dirs=${endorsed.dir}"/>
+ <jvmarg line="-Dsun.lang.ClassLoader.allowArraySyntax=true"/>
<classpath refid="test.path" />
<xmlfileset dir="${test.dir}" includes="*Test.xml" />
</testng>
Modified: trunk/seam-gen/resources/WEB-INF/web.xml
===================================================================
--- trunk/seam-gen/resources/WEB-INF/web.xml 2008-10-10 07:23:48 UTC (rev 9249)
+++ trunk/seam-gen/resources/WEB-INF/web.xml 2008-10-10 07:36:23 UTC (rev 9250)
@@ -1,51 +1,75 @@
<?xml version="1.0" ?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
- version="2.5">
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+ version="2.5">
- <!-- Ajax4jsf -->
-
- <context-param>
- <param-name>org.richfaces.SKIN</param-name>
- <param-value>@skin@</param-value>
- </context-param>
+ <!-- RichFaces -->
+
+ <context-param>
+ <param-name>org.richfaces.SKIN</param-name>
+ <param-value>@skin@</param-value>
+ </context-param>
+
+ <!-- Suppress spurious stylesheets -->
+
+ <context-param>
+ <param-name>org.richfaces.CONTROL_SKINNING</param-name>
+ <param-value>disable</param-value>
+ </context-param>
+
+ <context-param>
+ <param-name>org.richfaces.CONTROL_SKINNING_CLASSES</param-name>
+ <param-value>disable</param-value>
+ </context-param>
+
+ <!-- Change the load strategies to ALL to create bundles -->
+
+ <context-param>
+ <param-name>org.richfaces.LoadStyleStrategy</param-name>
+ <param-value>DEFAULT</param-value>
+ </context-param>
+
+ <context-param>
+ <param-name>org.richfaces.LoadScriptStrategy</param-name>
+ <param-value>DEFAULT</param-value>
+ </context-param>
<!-- Seam -->
-
+
<listener>
<listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
</listener>
-
- <filter>
- <filter-name>Seam Filter</filter-name>
- <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
- </filter>
+
+ <filter>
+ <filter-name>Seam Filter</filter-name>
+ <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
+ </filter>
- <filter-mapping>
- <filter-name>Seam Filter</filter-name>
- <url-pattern>/*</url-pattern>
- </filter-mapping>
-
+ <filter-mapping>
+ <filter-name>Seam Filter</filter-name>
+ <url-pattern>/*</url-pattern>
+ </filter-mapping>
+
<servlet>
<servlet-name>Seam Resource Servlet</servlet-name>
<servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
</servlet>
-
+
<servlet-mapping>
<servlet-name>Seam Resource Servlet</servlet-name>
<url-pattern>/seam/resource/*</url-pattern>
</servlet-mapping>
-
+
<!-- Facelets development mode (disable in production) -->
-
+
<context-param>
<param-name>facelets.DEVELOPMENT</param-name>
<param-value>true</param-value>
</context-param>
-
+
<!-- JSF -->
-
+
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
@@ -56,19 +80,19 @@
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
-
+
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.seam</url-pattern>
</servlet-mapping>
-
+
<security-constraint>
<display-name>Restrict raw XHTML Documents</display-name>
<web-resource-collection>
- <web-resource-name>XHTML</web-resource-name>
- <url-pattern>*.xhtml</url-pattern>
+ <web-resource-name>XHTML</web-resource-name>
+ <url-pattern>*.xhtml</url-pattern>
</web-resource-collection>
<auth-constraint/>
</security-constraint>
-
+
</web-app>
Modified: trunk/seam-gen/view/layout/template.xhtml
===================================================================
--- trunk/seam-gen/view/layout/template.xhtml 2008-10-10 07:23:48 UTC (rev 9249)
+++ trunk/seam-gen/view/layout/template.xhtml 2008-10-10 07:36:23 UTC (rev 9250)
@@ -12,8 +12,8 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>@projectName@</title>
<link rel="shortcut icon" href="favicon.ico"/>
- <ui:remove><!-- Change the stylesheet path to /stylesheet/theme.css to preview in the Visual Editor --></ui:remove>
<a:loadStyle src="resource:///stylesheet/theme.xcss"/>
+ <a:loadStyle src="/stylesheet/theme.css"/>
<ui:insert name="head"/>
</head>
Modified: trunk/seam-gen/view/stylesheet/theme.xcss
===================================================================
--- trunk/seam-gen/view/stylesheet/theme.xcss 2008-10-10 07:23:48 UTC (rev 9249)
+++ trunk/seam-gen/view/stylesheet/theme.xcss 2008-10-10 07:36:23 UTC (rev 9250)
@@ -79,184 +79,7 @@
<u:selector name=".rich-table-subheadercell a:hover">
<u:style name="color" skin="calendarHolidaysTextColor"/>
</u:selector>
-
+ <!-- Define static styles in the CDATA block below (you can also move this block to the top) -->
<f:verbatim><![CDATA[
-html {
- overflow-y: scroll;
-}
-
-body {
- font-size: 12px;
- margin: 0px;
-}
-
-a img {
- border: none;
-}
-
-h1 {
- font-size: 1.6em;
- margin-top: 0;
-}
-
-input[type=submit], input[type=button] {
- font-size: 10px;
- margin: 5px 5px 5px 0;
- cursor: pointer;
-}
-
-input[type=text], input[type=password], textarea {
- font-size: 11px;
- padding-left: 1px;
-}
-
-.tableControl, .actionButtons {
- width: 100%;
-}
-
-.tableControl a {
- padding-left: 10px;
-}
-
-.tableControl {
- text-align: right;
-}
-
-.footer {
- text-align: center;
- font-size: 11px;
- margin-bottom: 10px;
-}
-
-.rich-table {
- width: 100%;
-}
-
-.body {
- padding: 30px;
-}
-
-.columnHeader:hover {
- color: #FF6600;
-}
-
-.message {
- padding: 5px;
- list-style: none;
- border: 0;
- background: none;
- padding: 0;
- color: #000000;
- margin: 5px 0 8px 0;
- font-size: 12px;
-}
-
-.message li {
- background: no-repeat left center;
- padding-top: 1px;
- padding-left: 20px;
- margin-left: 3px;
-}
-
-.message li.infomsg {
- background-image: url(../../../../../img/msginfo.png);
-}
-
-.message li.errormsg {
- background-image: url(../../../../../img/msgerror.png);
-}
-
-.message li.warnmsg {
- background-image: url(../../../../../img/msgwarn.png);
-}
-
-.name {
- vertical-align: top;
- font-weight: bold;
- width: 115px;
- float: left;
- padding: 5px;
- margin-top: 3px;
- clear: left;
-}
-
-.value {
- float: left;
- padding: 5px;
-}
-
-.error {
- float: left;
- padding: 5px;
-}
-
-.errors {
- color: red;
- vertical-align: middle;
-}
-
-img.errors {
- padding-right: 5px;
-}
-
-.errors input, .errors textarea {
- border: 1px solid red !important;
-}
-
-.required {
- color: red;
- padding-left: 2px;
-}
-
-.rich-stglpanel-body {
- overflow: auto;
-}
-
-/* the specificity here is necessary to override the defaults */
-.rich-panel .rich-panel-header,
-.rich-stglpanel .rich-stglpanel-header {
- padding: 2px 3px;
-}
-
-
-select {
- font-size: 12px;
-}
-
-.rich-panel input[type=submit], .rich-panel input[type=button],
-.rich-tabpanel input[type=submit], .rich-tabpanel input[type=button] {
- margin-bottom: 0;
-}
-
-.tableControl input[type=submit], .tableControl input[type=button], .tableControl select {
- margin: 5px 0 5px 5px;
-}
-
-/* I don't know why this is necessary, but the select is off by a pixel on the top and is padding too much on the left */
-.tableControl select {
- margin-left: 2px;
- position: relative;
- top: 1px;
-}
-
-.actionButtons {
- padding-left: 1px;
-}
-
-.actionButtons select {
- margin: 5px 5px 5px 0;
- vertical-align: bottom;
-}
-
-.rich-datalist {
- list-style: square;
- margin: 6px 0 1px 0;
- padding-left: 18px;
-}
-
-.rich-list-item {
- padding-bottom: 4px;
-}
]]></f:verbatim>
-
</f:template>
16 years, 2 months
Seam SVN: r9249 - trunk/src/main/org/jboss/seam.
by seam-commits@lists.jboss.org
Author: dan.j.allen
Date: 2008-10-10 03:23:48 -0400 (Fri, 10 Oct 2008)
New Revision: 9249
Modified:
trunk/src/main/org/jboss/seam/Component.java
Log:
rename getTopInitialValue() to getInitialValueHonoringExceptions() so it is clear what the method does
explain the reason why we ignore expressions on org.jboss.seam.core.init
Modified: trunk/src/main/org/jboss/seam/Component.java
===================================================================
--- trunk/src/main/org/jboss/seam/Component.java 2008-10-09 20:28:51 UTC (rev 9248)
+++ trunk/src/main/org/jboss/seam/Component.java 2008-10-10 07:23:48 UTC (rev 9249)
@@ -474,7 +474,7 @@
if ( !setterMethod.isAccessible() ) setterMethod.setAccessible(true);
Class parameterClass = setterMethod.getParameterTypes()[0];
Type parameterType = setterMethod.getGenericParameterTypes()[0];
- initializerSetters.put( setterMethod, getTopInitialValue(propertyValue, parameterClass, parameterType) );
+ initializerSetters.put( setterMethod, getInitialValueHonoringExceptions(propertyName, propertyValue, parameterClass, parameterType) );
}
else
{
@@ -487,10 +487,11 @@
}
}
- private InitialValue getTopInitialValue(Conversions.PropertyValue propertyValue, Class parameterClass, Type parameterType)
+ private InitialValue getInitialValueHonoringExceptions(String propertyName, Conversions.PropertyValue propertyValue, Class parameterClass, Type parameterType)
{
- //note that org.jboss.seam.core.init.jndiPattern looks like an EL expression but is not one!
- if ( propertyValue.isExpression() && getBeanClass().equals(Init.class) )
+ // the org.jboss.seam.core.init component cannot accomodate EL expressions because of startup order
+ // note that org.jboss.seam.core.init.jndiPattern looks like an EL expression but is not one!
+ if ("org.jboss.seam.core.init".equals(getName()))
{
return new ConstantInitialValue(propertyValue, parameterClass, parameterType);
}
16 years, 2 months
Seam SVN: r9248 - trunk/doc/Seam_Reference_Guide/en-US.
by seam-commits@lists.jboss.org
Author: danielc.roth
Date: 2008-10-09 16:28:51 -0400 (Thu, 09 Oct 2008)
New Revision: 9248
Modified:
trunk/doc/Seam_Reference_Guide/en-US/Controls.xml
Log:
Docs for s:span, minor for s:validateEquality
Modified: trunk/doc/Seam_Reference_Guide/en-US/Controls.xml
===================================================================
--- trunk/doc/Seam_Reference_Guide/en-US/Controls.xml 2008-10-09 20:13:24 UTC (rev 9247)
+++ trunk/doc/Seam_Reference_Guide/en-US/Controls.xml 2008-10-09 20:28:51 UTC (rev 9248)
@@ -481,7 +481,7 @@
<para><emphasis>Description</emphasis></para>
<para>
Tag to nest inside an input control to validate that its parent's
- value is the same as the referenced control's id.
+ value is the same as the referenced control's value.
</para>
<para><emphasis>Attributes</emphasis></para>
@@ -666,11 +666,17 @@
<para><emphasis>Attributes</emphasis></para>
<para>
- None.
+ <itemizedlist>
+ <listitem>
+ <para>
+ <literal>title</literal> — Title for a span.
+ </para>
+ </listitem>
+ </itemizedlist>
</para>
<para><emphasis>Usage</emphasis></para>
- <programlisting role="XHTML"><![CDATA[<s:span styleClass="required" rendered="#{required}">*</s:span>]]></programlisting>
+ <programlisting role="XHTML"><![CDATA[<s:span styleClass="required" rendered="#{required}" title="Small tooltip">*</s:span>]]></programlisting>
</section>
16 years, 2 months
Seam SVN: r9247 - in trunk: examples/ui/view and 3 other directories.
by seam-commits@lists.jboss.org
Author: danielc.roth
Date: 2008-10-09 16:13:24 -0400 (Thu, 09 Oct 2008)
New Revision: 9247
Added:
trunk/examples/ui/src/org/jboss/seam/example/ui/SpanTitle.java
trunk/ui/src/main/java/org/jboss/seam/ui/component/UISpan.java
Modified:
trunk/examples/ui/view/template.xhtml
trunk/ui/src/main/config/component/span.xml
trunk/ui/src/main/java/org/jboss/seam/ui/renderkit/SpanRendererBase.java
Log:
JBSEAM-3140
Added: trunk/examples/ui/src/org/jboss/seam/example/ui/SpanTitle.java
===================================================================
--- trunk/examples/ui/src/org/jboss/seam/example/ui/SpanTitle.java (rev 0)
+++ trunk/examples/ui/src/org/jboss/seam/example/ui/SpanTitle.java 2008-10-09 20:13:24 UTC (rev 9247)
@@ -0,0 +1,16 @@
+package org.jboss.seam.example.ui;
+
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Unwrap;
+
+@Name("spanTitle")
+public class SpanTitle
+{
+
+ @Unwrap
+ public String unwrap()
+ {
+ return "A Span title";
+ }
+
+}
Modified: trunk/examples/ui/view/template.xhtml
===================================================================
--- trunk/examples/ui/view/template.xhtml 2008-10-09 14:04:56 UTC (rev 9246)
+++ trunk/examples/ui/view/template.xhtml 2008-10-09 20:13:24 UTC (rev 9247)
@@ -101,6 +101,11 @@
<li><s:link view="/equalityValidator.xhtml">
<code>s:validateEquality</code>
</s:link></li>
+
+ <li><s:span title="#{spanTitle}" style="font-weight:bold">
+ <code>s:span</code>
+ </s:span>
+ </li>
</ul>
</s:div>
Modified: trunk/ui/src/main/config/component/span.xml
===================================================================
--- trunk/ui/src/main/config/component/span.xml 2008-10-09 14:04:56 UTC (rev 9246)
+++ trunk/ui/src/main/config/component/span.xml 2008-10-09 20:13:24 UTC (rev 9247)
@@ -5,7 +5,7 @@
<name>org.jboss.seam.ui.Span</name>
<family>org.jboss.seam.ui.Span</family>
<classname>org.jboss.seam.ui.component.html.HtmlSpan</classname>
- <superclass>org.jboss.seam.ui.component.UIStyle</superclass>
+ <superclass>org.jboss.seam.ui.component.UISpan</superclass>
<description>
<![CDATA[Render a HTML <span>]]>
</description>
@@ -22,5 +22,10 @@
</tag>
&ui_component_attributes;
&html_style_attributes;
+ <property>
+ <name>title</name>
+ <classname>java.lang.String</classname>
+ <description>Span title attribute</description>
+ </property>
</component>
</components>
Added: trunk/ui/src/main/java/org/jboss/seam/ui/component/UISpan.java
===================================================================
--- trunk/ui/src/main/java/org/jboss/seam/ui/component/UISpan.java (rev 0)
+++ trunk/ui/src/main/java/org/jboss/seam/ui/component/UISpan.java 2008-10-09 20:13:24 UTC (rev 9247)
@@ -0,0 +1,10 @@
+package org.jboss.seam.ui.component;
+
+public abstract class UISpan extends UIStyle
+{
+
+ public abstract String getTitle();
+
+ public abstract void setTitle(String title);
+
+}
Modified: trunk/ui/src/main/java/org/jboss/seam/ui/renderkit/SpanRendererBase.java
===================================================================
--- trunk/ui/src/main/java/org/jboss/seam/ui/renderkit/SpanRendererBase.java 2008-10-09 14:04:56 UTC (rev 9246)
+++ trunk/ui/src/main/java/org/jboss/seam/ui/renderkit/SpanRendererBase.java 2008-10-09 20:13:24 UTC (rev 9247)
@@ -2,8 +2,11 @@
import java.io.IOException;
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
+import org.jboss.seam.ui.component.UISpan;
import org.jboss.seam.ui.component.UIStyle;
public class SpanRendererBase extends StyleRendererBase
@@ -12,7 +15,7 @@
@Override
protected Class getComponentClass()
{
- return UIStyle.class;
+ return UISpan.class;
}
@Override
@@ -22,6 +25,31 @@
}
@Override
+ protected void doEncodeBegin(ResponseWriter writer, FacesContext context, UIComponent component) throws IOException
+ {
+ UISpan span = (UISpan) component;
+
+ startElement(writer, span);
+
+ writer.writeAttribute("id", component.getClientId(context), "id");
+
+ if (span.getStyleClass() != null)
+ {
+ writer.writeAttribute("class", span.getStyleClass(), "styleClass");
+ }
+
+ if (span.getStyle() != null)
+ {
+ writer.writeAttribute("style", span.getStyle(), "style");
+ }
+
+ if (span.getTitle() != null)
+ {
+ writer.writeAttribute("title", span.getTitle(), "title");
+ }
+ }
+
+ @Override
public void startElement(ResponseWriter writer, UIStyle style) throws IOException
{
writer.startElement("span", style);
16 years, 2 months
Seam SVN: r9246 - trunk/src/main/org/jboss/seam/init.
by seam-commits@lists.jboss.org
Author: jbalunas(a)redhat.com
Date: 2008-10-09 10:04:56 -0400 (Thu, 09 Oct 2008)
New Revision: 9246
Modified:
trunk/src/main/org/jboss/seam/init/Initialization.java
Log:
JBSEAM-2455 - fixed if path does not exist
Modified: trunk/src/main/org/jboss/seam/init/Initialization.java
===================================================================
--- trunk/src/main/org/jboss/seam/init/Initialization.java 2008-10-09 07:54:56 UTC (rev 9245)
+++ trunk/src/main/org/jboss/seam/init/Initialization.java 2008-10-09 14:04:56 UTC (rev 9246)
@@ -805,10 +805,14 @@
try
{
URL resourcePath = servletContext.getResource(path);
- if (resourcePath.getProtocol().equals("file"))
+ if ((resourcePath != null) && (resourcePath.getProtocol().equals("file")))
{
realPath = resourcePath.getPath();
}
+ else
+ {
+ log.warn("Unable to determine real path from servlet context for \"" + path + "\" path does not exist.");
+ }
}
catch (MalformedURLException e)
{
16 years, 2 months
Seam SVN: r9245 - in trunk: seam-gen and 1 other directory.
by seam-commits@lists.jboss.org
Author: dan.j.allen
Date: 2008-10-09 03:54:56 -0400 (Thu, 09 Oct 2008)
New Revision: 9245
Modified:
trunk/seam
trunk/seam-gen/build.xml
trunk/seam.bat
Log:
JBSEAM-2338
Modified: trunk/seam
===================================================================
--- trunk/seam 2008-10-09 06:48:29 UTC (rev 9244)
+++ trunk/seam 2008-10-09 07:54:56 UTC (rev 9245)
@@ -1,18 +1,30 @@
#!/bin/sh
############################################
#
-# seam-gen
+# seam-gen - Seam project and code generator
#
############################################
+# Validate the JDK installation
+if [ -z "$JAVA_HOME" ]; then
+ echo "The JAVA_HOME environment variable is not set"
+ echo "Please point it to a valid JDK installation"
+ exit 1
+elif [ ! -x "$JAVA_HOME"/bin/javac ]; then
+ echo "The JAVA_HOME environment variable should point to a JDK, not a JRE"
+ exit 1
+fi
+
DIRNAME=`dirname $0`
+WORKING_DIR=$PWD
-if [ "x$SEAM_HOME" = "x" ]; then
+if [ -z "$SEAM_HOME" ]; then
# get the full path (without any relative bits)
- SEAM_HOME=`cd $DIRNAME; pwd`
+ SEAM_HOME=`readlink -f $DIRNAME`
fi
-cd $SEAM_HOME/seam-gen
+SEAM_GEN_DIR="$SEAM_HOME/seam-gen"
+SEAM_COMMAND="${1}"
# OS specific support (must be 'true' or 'false').
cygwin=false;
@@ -22,17 +34,12 @@
;;
esac
-if [ "${1}" = "" ]
-then
- cat USAGE
-elif [ "${1}" = help ]
-then
- cat README
-elif $cygwin
-then
- java -cp "${JAVA_HOME}\lib\tools.jar;..\build\lib\ant-launcher.jar;..\build\lib\ant-nodeps.jar;..\build\lib\ant.jar" -Dant.home=..\lib org.apache.tools.ant.launch.Launcher ${*}
+if [ -z "$SEAM_COMMAND" ]; then
+ cat $SEAM_GEN_DIR/USAGE
+elif [ "$SEAM_COMMAND" = help ]; then
+ cat $SEAM_GEN_DIR/README
+elif $cygwin; then
+ java -cp "${JAVA_HOME}\lib\tools.jar;${SEAM_HOME}\build\lib\ant-launcher.jar;${SEAM_HOME}\build\lib\ant-nodeps.jar;${SEAM_HOME}\build\lib\ant.jar" -Dant.home=${SEAM_HOME}\lib org.apache.tools.ant.launch.Launcher -buildfile "${SEAM_GEN_DIR}\build.xml" -Dworking.dir=$WORKING_DIR ${*}
else
- java -cp "${JAVA_HOME}/lib/tools.jar:${SEAM_HOME}/build/lib/ant-launcher.jar:${SEAM_HOME}/build/lib/ant-nodeps.jar:${SEAM_HOME}/build/lib/ant.jar" -Dant.home=../lib org.apache.tools.ant.launch.Launcher ${*}
+ java -cp "${JAVA_HOME}/lib/tools.jar:${SEAM_HOME}/build/lib/ant-launcher.jar:${SEAM_HOME}/build/lib/ant-nodeps.jar:${SEAM_HOME}/build/lib/ant.jar" -Dant.home=${SEAM_HOME}/lib org.apache.tools.ant.launch.Launcher -buildfile "${SEAM_GEN_DIR}/build.xml" -Dworking.dir=$WORKING_DIR ${*}
fi
-
-cd ..
Modified: trunk/seam-gen/build.xml
===================================================================
--- trunk/seam-gen/build.xml 2008-10-09 06:48:29 UTC (rev 9244)
+++ trunk/seam-gen/build.xml 2008-10-09 07:54:56 UTC (rev 9245)
@@ -1,53 +1,70 @@
<?xml version="1.0"?>
+<project name="seam-gen" default="help" basedir="." xmlns:artifact="urn:maven-artifact-ant">
-<project name="seam-gen" default="help" basedir="." xmlns:artifact="urn:maven-artifact-ant">
- <!-- Build resources -->
- <property name="seam.dir" value="${ant.file.seam-gen}/../../" />
+ <!-- Allow the location of seam-gen and the seam distribution to be overridden -->
+ <dirname property="seam-gen.dir" file="${ant.file.seam-gen}"/>
+ <dirname property="seam.dir" file="${seam-gen.dir}"/>
- <!-- Order is important -->
- <property file="./build.properties" />
- <import file="${seam.dir}/build/common.build.xml" />
-
- <target name="init">
- <path id="seam-gen.path" path="${seam.dir}/lib/gen/jboss-seam-gen.jar" />
+ <!-- Determine where the project properties are located -->
+ <condition property="seam-gen.properties" value="${working.dir}/seam-gen.properties"
+ else="${seam-gen.dir}/build.properties">
+ <and>
+ <available file="${working.dir}/seam-gen.properties"/>
+ <available file="${working.dir}/build.xml"/>
+ </and>
+ </condition>
+ <condition property="cmd.prefix" value="./" else="">
+ <or>
+ <os family="unix"/>
+ <os family="mac"/>
+ </or>
+ </condition>
+ <condition property="seam.cmd" value="${cmd.prefix}seam" else="ant">
+ <equals arg1="${seam-gen.properties}" arg2="${seam-gen.dir}/build.properties"/>
+ </condition>
- <!-- taskdefs -->
- <taskdef name="normalizeProjectName"
- classname="org.jboss.seam.tool.NormalizeProjectNameTask"
- classpathref="seam-gen.path"/>
-
- <taskdef name="packageDirectory"
- classname="org.jboss.seam.tool.PackageDirectoryTask"
- classpathref="seam-gen.path"/>
-
- <taskdef name="pathFilename"
- classname="org.jboss.seam.tool.PathFilenameTask"
- classpathref="seam-gen.path"/>
-
- <taskdef name="lowercaseProperty"
- classname="org.jboss.seam.tool.LowercasePropertyTask"
- classpathref="seam-gen.path"/>
-
- <taskdef name="uppercaseProperty"
- classname="org.jboss.seam.tool.UppercasePropertyTask"
- classpathref="seam-gen.path"/>
-
- <taskdef name="print"
- classname="org.jboss.seam.tool.PrintTask"
- classpathref="seam-gen.path"/>
-
- <taskdef name="pathFixer"
- classname="org.jboss.seam.tool.FixPathTask"
- classpathref="seam-gen.path"/>
- </target>
-
+ <property file="${seam-gen.properties}"/>
+ <import file="${seam.dir}/build/common.build.xml"/>
+
+ <target name="init">
+ <path id="seam-gen.lib.path" path="${seam.dir}/lib/gen/jboss-seam-gen.jar"/>
+
+ <taskdef name="normalizeProjectName"
+ classname="org.jboss.seam.tool.NormalizeProjectNameTask"
+ classpathref="seam-gen.lib.path"/>
+
+ <taskdef name="packageDirectory"
+ classname="org.jboss.seam.tool.PackageDirectoryTask"
+ classpathref="seam-gen.lib.path"/>
+
+ <taskdef name="pathFilename"
+ classname="org.jboss.seam.tool.PathFilenameTask"
+ classpathref="seam-gen.lib.path"/>
+
+ <taskdef name="lowercaseProperty"
+ classname="org.jboss.seam.tool.LowercasePropertyTask"
+ classpathref="seam-gen.lib.path"/>
+
+ <taskdef name="uppercaseProperty"
+ classname="org.jboss.seam.tool.UppercasePropertyTask"
+ classpathref="seam-gen.lib.path"/>
+
+ <taskdef name="print"
+ classname="org.jboss.seam.tool.PrintTask"
+ classpathref="seam-gen.lib.path"/>
+
+ <taskdef name="pathFixer"
+ classname="org.jboss.seam.tool.FixPathTask"
+ classpathref="seam-gen.lib.path"/>
+ </target>
+
<target name="init-properties" depends="init">
-
+
<packageDirectory property="action.dir" package="hot/${action.package}"/>
<packageDirectory property="model.dir" package="main/${model.package}"/>
<packageDirectory property="test.dir" package="test/${test.package}"/>
<pathFilename property="driver.file" path="${driver.jar}"/>
-
+
<condition property="hibernate.hbm2ddl.auto" value="update">
<and>
<equals arg1="${database.exists}" arg2="n"/>
@@ -70,49 +87,47 @@
<equals arg1="${project.type}" arg2="ear"/>
</condition>
<property name="project.home" value="${workspace.home}/${project.name}"/>
-
- <!-- filtersets and filesets -->
-
+
<condition property="schema.property" value="
 <property name="hibernate.default_schema" value="${hibernate.default_schema}"/>">
<isset property="hibernate.default_schema"/>
</condition>
<condition property="schema.property" value="">
- <not><isset property="hibernate.default_schema"/></not>
- </condition>
-
- <condition property="catalog.property" value="
 <property name="hibernate.default_catalog" value="${hibernate.default_catalog}"/>">
- <isset property="hibernate.default_catalog"/>
- </condition>
- <condition property="catalog.property" value="">
- <not><isset property="hibernate.default_catalog"/></not>
- </condition>
-
- <condition property="base.dir" value="icefaces-staging" else=".">
+ <not><isset property="hibernate.default_schema"/></not>
+ </condition>
+
+ <condition property="catalog.property" value="
 <property name="hibernate.default_catalog" value="${hibernate.default_catalog}"/>">
+ <isset property="hibernate.default_catalog"/>
+ </condition>
+ <condition property="catalog.property" value="">
+ <not><isset property="hibernate.default_catalog"/></not>
+ </condition>
+
+ <condition property="templates.dir" value="${seam-gen.dir}/icefaces-staging" else="${seam-gen.dir}">
<equals arg1="${icefaces}" arg2="y"/>
</condition>
- <condition property="icefaces.lib" value="${icefaces.home}/lib" else="../lib">
- <and>
- <equals arg1="${icefaces}" arg2="y"/>
- <not>
- <equals arg1="${icefaces.home}" arg2=""/>
- </not>
- </and>
+ <condition property="icefaces.lib" value="${icefaces.home}/lib" else="${seam.dir}/lib">
+ <and>
+ <equals arg1="${icefaces}" arg2="y"/>
+ <not>
+ <equals arg1="${icefaces.home}" arg2=""/>
+ </not>
+ </and>
</condition>
<condition property="icefaces.property">
<equals arg1="${icefaces}" arg2="y"/>
</condition>
-
- <condition property="icefaces.lib.property">
- <and>
- <equals arg1="${icefaces}" arg2="y"/>
- <not>
- <equals arg1="${icefaces.home}" arg2=""/>
- </not>
- </and>
- </condition>
-
+
+ <condition property="icefaces.lib.property">
+ <and>
+ <equals arg1="${icefaces}" arg2="y"/>
+ <not>
+ <equals arg1="${icefaces.home}" arg2=""/>
+ </not>
+ </and>
+ </condition>
+
<filterset id="jdbc">
<filter token="jdbcUrl" value="${hibernate.connection.url}"/>
<filter token="driverClass" value="${hibernate.connection.driver_class}"/>
@@ -120,31 +135,29 @@
<filter token="password" value="${hibernate.connection.password}"/>
<filter token="catalogProperty" value="${catalog.property}"/>
<filter token="schemaProperty" value="${schema.property}"/>
- <filter token="hibernate.dialect" value="${hibernate.dialect}"/>
+ <filter token="hibernate.dialect" value="${hibernate.dialect}"/>
</filterset>
-
- <echo message="${jboss.home}"/>
-
+
+ <echo message="${jboss.home}"/>
+
<filterset id="project">
- <filter token="projectName" value="${project.name}" />
- <filter token="modelPackage" value="${model.package}" />
- <filter token="actionPackage" value="${action.package}" />
- <filter token="testPackage" value="${test.package}" />
- <filter token="deploymentType" value="${project.type}" />
- <filter token="jbossHome" value="${jboss.home}" />
- <filter token="iceHome" value="${icefaces.home}" />
+ <filter token="projectName" value="${project.name}"/>
+ <filter token="modelPackage" value="${model.package}"/>
+ <filter token="actionPackage" value="${action.package}"/>
+ <filter token="testPackage" value="${test.package}"/>
+ <filter token="deploymentType" value="${project.type}"/>
+ <filter token="jbossHome" value="${jboss.home}"/>
+ <filter token="iceHome" value="${icefaces.home}"/>
<filter token="hbm2ddl" value="${hibernate.hbm2ddl.auto}"/>
<filter token="driverJar" value="${driver.file}"/>
- <filter token="skin" value="${richfaces.skin}" />
- <filter token="schemaVersion" value="${version}" />
+ <filter token="skin" value="${richfaces.skin}"/>
+ <filter token="schemaVersion" value="${version}"/>
</filterset>
-
+
</target>
-
- <!-- targets -->
<target name="setup-filters">
-
+
<filterset id="filters">
<filter token="interfaceName" value="${interface.name}"/>
<filter token="beanName" value="${bean.name}"/>
@@ -160,296 +173,266 @@
<filter token="homeName" value="${component.name}Home"/>
<filter token="query" value="${query.text}"/>
</filterset>
-
+
</target>
-
+
<target name="setup"
- description="Prompt for settings" depends="init">
- <property file="./build.properties" prefix="old" />
+ description="Prompt for settings" depends="init">
+ <property file="${seam-gen.properties}" prefix="old"/>
<echo message="Welcome to seam-gen :-)"/>
<property name="old.workspace.home" value="C:/Projects"/>
- <input addproperty="workspace.home.new"
- message="Enter your Java project workspace (the directory that contains your Seam projects) [${old.workspace.home}]"
+ <input addproperty="workspace.home.new"
+ message="Enter your Java project workspace (the directory that contains your Seam projects) [${old.workspace.home}]"
defaultvalue="${old.workspace.home}"/>
- <pathFixer property="workspace.home.new" />
-
+ <pathFixer property="workspace.home.new"/>
+
<property name="old.jboss.home" value="C:/Program Files/jboss-4.2.3.GA"/>
- <input addproperty="jboss.home.new"
- message="Enter your JBoss home directory [${old.jboss.home}]"
+ <input addproperty="jboss.home.new"
+ message="Enter your JBoss home directory [${old.jboss.home}]"
defaultvalue="${old.jboss.home}"/>
- <pathFixer property="jboss.home.new" />
-
+ <pathFixer property="jboss.home.new"/>
+
<property name="old.project.name" value="myproject"/>
- <input addproperty="project.name.new"
- message="Enter the project name [${old.project.name}]"
+ <input addproperty="project.name.new"
+ message="Enter the project name [${old.project.name}]"
defaultvalue="${old.project.name}"/>
- <normalizeProjectName property="project.name.new" />
- <echo message="Accepted project name as: ${project.name.new}" />
-
- <property name="old.icefaces" value="n"/>
- <input addproperty="icefaces.new"
- message="Do you want to use ICEfaces instead of RichFaces [${old.icefaces}]"
- validargs="y,n"
- defaultvalue="${old.icefaces}" />
-
- <condition property="icefaces.home.new" value="">
- <equals arg1="${icefaces.new}" arg2="n"/>
- </condition>
-
- <property name="old.icefaces.home" value="" />
- <input addproperty="icefaces.home.new"
- message="By default, seam-gen will download the recommended ICEfaces. If you want to use a specific version of ICEfaces, enter the path to icefaces here [${old.icefaces.home}]"
- defaultvalue="${old.icefaces.home}" />
+ <normalizeProjectName property="project.name.new"/>
+ <echo message="Accepted project name as: ${project.name.new}"/>
+ <property name="old.icefaces" value="n"/>
+ <input addproperty="icefaces.new"
+ message="Do you want to use ICEfaces instead of RichFaces [${old.icefaces}]"
+ validargs="y,n"
+ defaultvalue="${old.icefaces}"/>
+
+ <condition property="icefaces.home.new" value="">
+ <equals arg1="${icefaces.new}" arg2="n"/>
+ </condition>
+
+ <property name="old.icefaces.home" value=""/>
+ <input addproperty="icefaces.home.new"
+ message="By default, seam-gen will download the recommended ICEfaces. If you want to use a specific version of ICEfaces, enter the path to icefaces here [${old.icefaces.home}]"
+ defaultvalue="${old.icefaces.home}"/>
+
<condition property="richfaces.skin.new" value="">
<equals arg1="${icefaces.new}" arg2="y"/>
</condition>
<property name="old.richfaces.skin" value="blueSky"/>
- <input addproperty="richfaces.skin.new"
- message="Select a RichFaces skin [${old.richfaces.skin}]"
+ <input addproperty="richfaces.skin.new"
+ message="Select a RichFaces skin [${old.richfaces.skin}]"
validargs="blueSky,classic,ruby,wine,deepMarine,emeraldTown,japanCherry,DEFAULT"
defaultvalue="${old.richfaces.skin}"/>
-
+
<property name="old.project.type" value="ear"/>
- <input addproperty="project.type.new"
- message="Is this project deployed as an EAR (with EJB components) or a WAR (with no EJB support) [${old.project.type}]"
- validargs="ear,war"
+ <input addproperty="project.type.new"
+ message="Is this project deployed as an EAR (with EJB components) or a WAR (with no EJB support) [${old.project.type}]"
+ validargs="ear,war"
defaultvalue="${old.project.type}"/>
-
+
<property name="old.action.package" value="com.mydomain.${project.name.new}"/>
- <input addproperty="action.package.new"
- message="Enter the Java package name for your session beans [${old.action.package}]"
+ <input addproperty="action.package.new"
+ message="Enter the Java package name for your session beans [${old.action.package}]"
defaultvalue="${old.action.package}"/>
-
+
<property name="old.model.package" value="${action.package.new}"/>
- <input addproperty="model.package.new"
- message="Enter the Java package name for your entity beans [${old.model.package}]"
+ <input addproperty="model.package.new"
+ message="Enter the Java package name for your entity beans [${old.model.package}]"
defaultvalue="${old.model.package}"/>
-
+
<property name="old.test.package" value="${action.package.new}.test"/>
- <input addproperty="test.package.new"
- message="Enter the Java package name for your test cases [${old.test.package}]"
+ <input addproperty="test.package.new"
+ message="Enter the Java package name for your test cases [${old.test.package}]"
defaultvalue="${old.test.package}"/>
-
- <condition property="database.type.default" value="${old.database.type}">
- <isset property="old.database.type"/>
- </condition>
- <property name="database.type.default" value="hsql"/>
- <input addproperty="database.type.new"
+
+ <condition property="database.type.default" value="${old.database.type}">
+ <isset property="old.database.type"/>
+ </condition>
+ <property name="database.type.default" value="hsql"/>
+ <input addproperty="database.type.new"
message="What kind of database are you using? [${database.type.default}]"
- validargs="hsql,mysql,oracle,postgres,mssql,db2,sybase,enterprisedb,h2"
+ validargs="hsql,mysql,oracle,postgres,mssql,db2,sybase,enterprisedb,h2"
defaultvalue="${database.type.default}"/>
-
- <!-- if the database type did not change, default to the previous values -->
-
- <condition property="hibernate.dialect.default" value="${old.hibernate.dialect}">
- <equals arg1="${old.database.type}" arg2="${database.type.new}"/>
- </condition>
- <condition property="hibernate.connection.url.default" value="${old.hibernate.connection.url}">
- <equals arg1="${old.database.type}" arg2="${database.type.new}"/>
- </condition>
- <condition property="hibernate.connection.driver_class.default" value="${old.hibernate.connection.driver_class}">
- <equals arg1="${old.database.type}" arg2="${database.type.new}"/>
- </condition>
-
- <!-- otherwise default to the defaults for the database type -->
-
- <condition property="hibernate.dialect.default" value="org.hibernate.dialect.H2Dialect">
- <equals arg1="${database.type.new}" arg2="h2"/>
- </condition>
- <condition property="hibernate.dialect.default" value="org.hibernate.dialect.HSQLDialect">
- <equals arg1="${database.type.new}" arg2="hsql"/>
- </condition>
+
+ <!-- if the database type did not change, default to the previous values -->
+
+ <condition property="hibernate.dialect.default" value="${old.hibernate.dialect}">
+ <equals arg1="${old.database.type}" arg2="${database.type.new}"/>
+ </condition>
+ <condition property="hibernate.connection.url.default" value="${old.hibernate.connection.url}">
+ <equals arg1="${old.database.type}" arg2="${database.type.new}"/>
+ </condition>
+ <condition property="hibernate.connection.driver_class.default" value="${old.hibernate.connection.driver_class}">
+ <equals arg1="${old.database.type}" arg2="${database.type.new}"/>
+ </condition>
+
+ <!-- otherwise default to the defaults for the database type -->
+
+ <condition property="hibernate.dialect.default" value="org.hibernate.dialect.H2Dialect">
+ <equals arg1="${database.type.new}" arg2="h2"/>
+ </condition>
+ <condition property="hibernate.dialect.default" value="org.hibernate.dialect.HSQLDialect">
+ <equals arg1="${database.type.new}" arg2="hsql"/>
+ </condition>
<condition property="hibernate.dialect.default" value="org.hibernate.dialect.MySQLDialect">
- <equals arg1="${database.type.new}" arg2="mysql"/>
+ <equals arg1="${database.type.new}" arg2="mysql"/>
</condition>
<condition property="hibernate.dialect.default" value="org.hibernate.dialect.OracleDialect">
- <equals arg1="${database.type.new}" arg2="oracle"/>
+ <equals arg1="${database.type.new}" arg2="oracle"/>
</condition>
<condition property="hibernate.dialect.default" value="org.hibernate.dialect.PostgreSQLDialect">
- <equals arg1="${database.type.new}" arg2="postgres"/>
+ <equals arg1="${database.type.new}" arg2="postgres"/>
</condition>
<condition property="hibernate.dialect.default" value="org.hibernate.dialect.SQLServerDialect">
- <equals arg1="${database.type.new}" arg2="mssql"/>
+ <equals arg1="${database.type.new}" arg2="mssql"/>
</condition>
<condition property="hibernate.dialect.default" value="org.hibernate.dialect.DB2Dialect">
- <equals arg1="${database.type.new}" arg2="db2"/>
+ <equals arg1="${database.type.new}" arg2="db2"/>
</condition>
<condition property="hibernate.dialect.default" value="org.hibernate.dialect.SybaseDialect">
- <equals arg1="${database.type.new}" arg2="sybase"/>
+ <equals arg1="${database.type.new}" arg2="sybase"/>
</condition>
<condition property="hibernate.dialect.default" value="org.hibernate.dialect.PostgreSQLDialect">
- <equals arg1="${database.type.new}" arg2="enterprisedb"/>
+ <equals arg1="${database.type.new}" arg2="enterprisedb"/>
</condition>
-
- <!-- hibernate tools now correct detects the three available dialects; this detection may no longer be needed -->
- <!--
- <condition property="hibernatetool.metadatadialect.new" value="org.hibernate.cfg.reveng.dialect.H2MetaDataDialect">
+ <condition property="hibernate.connection.driver_class.default" value="org.h2.Driver">
<equals arg1="${database.type.new}" arg2="h2"/>
</condition>
- <condition property="hibernatetool.metadatadialect.new" value="org.hibernate.cfg.reveng.dialect.MySQLMetaDataDialect">
- <equals arg1="${database.type.new}" arg2="mysql"/>
+ <condition property="hibernate.connection.driver_class.default" value="org.hsqldb.jdbcDriver">
+ <equals arg1="${database.type.new}" arg2="hsql"/>
</condition>
- <condition property="hibernatetool.metadatadialect.new" value="org.hibernate.cfg.reveng.dialect.OracleMetaDataDialect">
- <equals arg1="${database.type.new}" arg2="oracle"/>
- </condition>
- <condition property="hibernatetool.metadatadialect.new" value="">
- <and>
- <not><equals arg1="${database.type.new}" arg2="h2" /></not>
- <not><equals arg1="${database.type.new}" arg2="mysql" /></not>
- <not><equals arg1="${database.type.new}" arg2="oracle" /></not>
- </and>
- </condition>
- -->
-
- <condition property="hibernate.connection.driver_class.default" value="org.h2.Driver">
- <equals arg1="${database.type.new}" arg2="h2"/>
- </condition>
- <condition property="hibernate.connection.driver_class.default" value="org.hsqldb.jdbcDriver">
- <equals arg1="${database.type.new}" arg2="hsql"/>
- </condition>
<condition property="hibernate.connection.driver_class.default" value="com.mysql.jdbc.Driver">
- <equals arg1="${database.type.new}" arg2="mysql"/>
+ <equals arg1="${database.type.new}" arg2="mysql"/>
</condition>
<condition property="hibernate.connection.driver_class.default" value="oracle.jdbc.driver.OracleDriver">
- <equals arg1="${database.type.new}" arg2="oracle"/>
+ <equals arg1="${database.type.new}" arg2="oracle"/>
</condition>
<condition property="hibernate.connection.driver_class.default" value="org.postgresql.Driver">
- <equals arg1="${database.type.new}" arg2="postgres"/>
+ <equals arg1="${database.type.new}" arg2="postgres"/>
</condition>
<condition property="hibernate.connection.driver_class.default" value="com.microsoft.sqlserver.jdbc.SQLServerDriver">
- <equals arg1="${database.type.new}" arg2="mssql"/>
+ <equals arg1="${database.type.new}" arg2="mssql"/>
</condition>
<condition property="hibernate.connection.driver_class.default" value="COM.ibm.db2.jdbc.app.DB2Driver">
- <equals arg1="${database.type.new}" arg2="db2"/>
+ <equals arg1="${database.type.new}" arg2="db2"/>
</condition>
<condition property="hibernate.connection.driver_class.default" value="com.sybase.jdbc2.jdbc.SybDriver">
- <equals arg1="${database.type.new}" arg2="sybase"/>
+ <equals arg1="${database.type.new}" arg2="sybase"/>
</condition>
<condition property="hibernate.connection.driver_class.default" value="com.edb.Driver">
- <equals arg1="${database.type.new}" arg2="enterprisedb"/>
+ <equals arg1="${database.type.new}" arg2="enterprisedb"/>
</condition>
- <condition property="hibernate.connection.url.default" value="jdbc:h2:.">
- <equals arg1="${database.type.new}" arg2="h2"/>
- </condition>
- <condition property="hibernate.connection.url.default" value="jdbc:hsqldb:.">
- <equals arg1="${database.type.new}" arg2="hsql"/>
- </condition>
+ <condition property="hibernate.connection.url.default" value="jdbc:h2:.">
+ <equals arg1="${database.type.new}" arg2="h2"/>
+ </condition>
+ <condition property="hibernate.connection.url.default" value="jdbc:hsqldb:.">
+ <equals arg1="${database.type.new}" arg2="hsql"/>
+ </condition>
<condition property="hibernate.connection.url.default" value="jdbc:mysql:///test">
- <equals arg1="${database.type.new}" arg2="mysql"/>
+ <equals arg1="${database.type.new}" arg2="mysql"/>
</condition>
<condition property="hibernate.connection.url.default" value="jdbc:oracle:thin:@localhost:1521:test">
- <equals arg1="${database.type.new}" arg2="oracle"/>
+ <equals arg1="${database.type.new}" arg2="oracle"/>
</condition>
<condition property="hibernate.connection.url.default" value="jdbc:postgresql:template1">
- <equals arg1="${database.type.new}" arg2="postgres"/>
+ <equals arg1="${database.type.new}" arg2="postgres"/>
</condition>
<condition property="hibernate.connection.url.default" value="jdbc:sqlserver://localhost">
- <equals arg1="${database.type.new}" arg2="mssql"/>
+ <equals arg1="${database.type.new}" arg2="mssql"/>
</condition>
<condition property="hibernate.connection.url.default" value="jdbc:db2:test">
- <equals arg1="${database.type.new}" arg2="db2"/>
+ <equals arg1="${database.type.new}" arg2="db2"/>
</condition>
<condition property="hibernate.connection.url.default" value="jdbc:sybase:Tds:localhost:5000/test">
- <equals arg1="${database.type.new}" arg2="sybase"/>
+ <equals arg1="${database.type.new}" arg2="sybase"/>
</condition>
<condition property="hibernate.connection.url.default" value="jdbc:edb://localhost:5444/edb">
- <equals arg1="${database.type.new}" arg2="enterprisedb"/>
+ <equals arg1="${database.type.new}" arg2="enterprisedb"/>
</condition>
-
- <!-- finally, default them to HSQL -->
-
+
+ <!-- finally, default them to HSQL -->
+
<property name="hibernate.dialect.default" value="org.hibernate.dialect.HSQLDialect"/>
<property name="hibernate.connection.driver_class.default" value="org.hsqldb.jdbcDriver"/>
<property name="hibernate.connection.url.default" value="jdbc:hsqldb:."/>
-
- <input addproperty="hibernate.dialect.new"
- message="Enter the Hibernate dialect for your database [${hibernate.dialect.default}]"
+
+ <input addproperty="hibernate.dialect.new"
+ message="Enter the Hibernate dialect for your database [${hibernate.dialect.default}]"
defaultvalue="${hibernate.dialect.default}"/>
-
- <property name="old.driver.jar" value="../lib/hsqldb.jar"/>
+
+ <property name="old.driver.jar" value="${seam.dir}/lib/hsqldb.jar"/>
<input addproperty="driver.jar.new"
- message="Enter the filesystem path to the JDBC driver jar [${old.driver.jar}]"
+ message="Enter the filesystem path to the JDBC driver jar [${old.driver.jar}]"
defaultvalue="${old.driver.jar}"/>
-
- <input addproperty="hibernate.connection.driver_class.new"
- message="Enter JDBC driver class for your database [${hibernate.connection.driver_class.default}]"
+
+ <input addproperty="hibernate.connection.driver_class.new"
+ message="Enter JDBC driver class for your database [${hibernate.connection.driver_class.default}]"
defaultvalue="${hibernate.connection.driver_class.default}"/>
-
- <input addproperty="hibernate.connection.url.new"
- message="Enter the JDBC URL for your database [${hibernate.connection.url.default}]"
+
+ <input addproperty="hibernate.connection.url.new"
+ message="Enter the JDBC URL for your database [${hibernate.connection.url.default}]"
defaultvalue="${hibernate.connection.url.default}"/>
-
+
<property name="old.hibernate.connection.username" value="sa"/>
- <input addproperty="hibernate.connection.username.new"
- message="Enter database username [${old.hibernate.connection.username}]"
+ <input addproperty="hibernate.connection.username.new"
+ message="Enter database username [${old.hibernate.connection.username}]"
defaultvalue="${old.hibernate.connection.username}"/>
-
+
<property name="old.hibernate.connection.password" value=""/>
- <input addproperty="hibernate.connection.password.new"
- message="Enter database password [${old.hibernate.connection.password}]"
+ <input addproperty="hibernate.connection.password.new"
+ message="Enter database password [${old.hibernate.connection.password}]"
defaultvalue="${old.hibernate.connection.password}"/>
-
+
<property name="old.hibernate.default_schema" value=""/>
- <condition property="hibernate.default_schema.new" value="">
+ <condition property="hibernate.default_schema.new" value="">
<equals arg1="${database.type.new}" arg2="mysql"/>
- </condition>
- <input addproperty="hibernate.default_schema.new"
- message="Enter the database schema name (it is OK to leave this blank) [${old.hibernate.default_schema}]"
+ </condition>
+ <input addproperty="hibernate.default_schema.new"
+ message="Enter the database schema name (it is OK to leave this blank) [${old.hibernate.default_schema}]"
defaultvalue="${old.hibernate.default_schema}"/>
-
+
<property name="old.hibernate.default_catalog" value=""/>
- <input addproperty="hibernate.default_catalog.new"
- message="Enter the database catalog name (it is OK to leave this blank) [${old.hibernate.default_catalog}]"
+ <input addproperty="hibernate.default_catalog.new"
+ message="Enter the database catalog name (it is OK to leave this blank) [${old.hibernate.default_catalog}]"
defaultvalue="${old.hibernate.default_catalog}"/>
-
+
<property name="old.database.exists" value="n"/>
- <input addproperty="database.exists.new"
+ <input addproperty="database.exists.new"
message="Are you working with tables that already exist in the database? [${old.database.exists}]"
- validargs="y,n"
+ validargs="y,n"
defaultvalue="${old.database.exists}"/>
<property name="old.database.drop" value="n"/>
- <input addproperty="database.drop.new"
+ <input addproperty="database.drop.new"
message="Do you want to drop and recreate the database tables and data in import.sql each time you deploy? [${old.database.drop}]"
- validargs="y,n"
+ validargs="y,n"
defaultvalue="${old.database.drop}"/>
-
- <condition property="hibernate.default_schema.key" value="hibernate.default_schema">
- <not><equals arg1="${hibernate.default_schema.new}" arg2=""/></not>
- </condition>
- <condition property="hibernate.default_schema.key" value="hibernate.default_schema.null">
- <equals arg1="${hibernate.default_schema.new}" arg2=""/>
- </condition>
-
- <condition property="hibernate.default_catalog.key" value="hibernate.default_catalog">
- <not><equals arg1="${hibernate.default_catalog.new}" arg2=""/></not>
- </condition>
- <condition property="hibernate.default_catalog.key" value="hibernate.default_catalog.null">
- <equals arg1="${hibernate.default_catalog.new}" arg2=""/>
- </condition>
- <!--
- <condition property="hibernatetool.metadatadialect.key" value="hibernatetool.metadatadialect">
- <not><equals arg1="${hibernatetool.metadatadialect.new}" arg2=""/></not>
+ <condition property="hibernate.default_schema.key" value="hibernate.default_schema">
+ <not><equals arg1="${hibernate.default_schema.new}" arg2=""/></not>
</condition>
- <condition property="hibernatetool.metadatadialect.key" value="hibernatetool.metadatadialect.null">
- <equals arg1="${hibernatetool.metadatadialect.new}" arg2=""/>
+ <condition property="hibernate.default_schema.key" value="hibernate.default_schema.null">
+ <equals arg1="${hibernate.default_schema.new}" arg2=""/>
</condition>
- -->
- <delete file="build.properties"/>
- <propertyfile file="build.properties" comment="Generated by seam setup">
+ <condition property="hibernate.default_catalog.key" value="hibernate.default_catalog">
+ <not><equals arg1="${hibernate.default_catalog.new}" arg2=""/></not>
+ </condition>
+ <condition property="hibernate.default_catalog.key" value="hibernate.default_catalog.null">
+ <equals arg1="${hibernate.default_catalog.new}" arg2=""/>
+ </condition>
+
+ <delete file="${seam-gen.properties}"/>
+ <propertyfile file="${seam-gen.properties}" comment="Generated by seam setup">
<entry key="workspace.home" value="${workspace.home.new}"/>
<entry key="project.name" value="${project.name.new}"/>
<entry key="richfaces.skin" value="${richfaces.skin.new}"/>
<entry key="project.type" value="${project.type.new}"/>
<entry key="jboss.home" value="${jboss.home.new}"/>
<entry key="icefaces" value="${icefaces.new}"/>
- <entry key="icefaces.home" value="${icefaces.home.new}"/>
+ <entry key="icefaces.home" value="${icefaces.home.new}"/>
<entry key="action.package" value="${action.package.new}"/>
<entry key="model.package" value="${model.package.new}"/>
<entry key="test.package" value="${test.package.new}"/>
@@ -458,7 +441,6 @@
<entry key="database.drop" value="${database.drop.new}"/>
<entry key="driver.jar" value="${driver.jar.new}"/>
<entry key="hibernate.dialect" value="${hibernate.dialect.new}"/>
- <!--<entry key="${hibernatetool.metadatadialect.key}" value="${hibernatetool.metadatadialect.new}" />-->
<entry key="hibernate.connection.driver_class" value="${hibernate.connection.driver_class.new}"/>
<entry key="hibernate.connection.url" value="${hibernate.connection.url.new}"/>
<entry key="hibernate.connection.username" value="${hibernate.connection.username.new}"/>
@@ -468,17 +450,17 @@
<entry key="${hibernate.default_catalog.key}" value="${hibernate.default_catalog.new}"/>
<entry key="hibernate.cache.provider_class" value="org.hibernate.cache.HashtableCacheProvider"/> <!-- yuck! -->
</propertyfile>
-
- <echo message="Installing JDBC driver jar to JBoss server"/>
+
+ <echo message="Installing JDBC driver jar to JBoss server"/>
<copy file="${driver.jar.new}" todir="${jboss.home.new}/server/default/lib"/>
- <echo message="Type 'seam create-project' to create the new project"/>
+ <echo message="Type '${seam.cmd} create-project' to create the new project"/>
</target>
<target name="icefaces-staging-copy" if="icefaces.property">
<echo message="Set up the icefaces directory"/>
<copy todir="icefaces-staging">
- <fileset dir=".">
+ <fileset dir="${seam-gen.dir}">
<include name="build-scripts/**"/>
<include name="hibernatetools/**"/>
<include name="lib/**"/>
@@ -488,11 +470,11 @@
<include name="test/**"/>
<include name="view/**"/>
<include name="nbproject/**"/>
- <include name="util/**"/>
+ <include name="util/**"/>
</fileset>
</copy>
<copy todir="icefaces-staging" overwrite="true">
- <fileset dir="icefaces">
+ <fileset dir="${seam-gen.dir}/icefaces">
<include name="build-scripts/**"/>
<include name="resources/**"/>
<include name="src/**"/>
@@ -500,11 +482,11 @@
</fileset>
</copy>
</target>
-
+
<target name="action-input" depends="init">
-
+
<input addproperty="component.name" message="Enter the Seam component name"/>
-
+
<uppercaseProperty name="interface.name.default" value="${component.name}"/>
<condition property="interface.name.prompt" value="local interface">
<isset property="project.ear"/>
@@ -515,25 +497,25 @@
<input message="Enter the ${interface.name.prompt} name [${interface.name.default}]"
addproperty="interface.name"
defaultvalue="${interface.name.default}"/>
-
+
<uppercaseProperty name="bean.name.default" value="${component.name}Bean"/>
<condition property="bean.name" value="${interface.name}">
<isset property="project.war"/>
</condition>
- <input message="Enter the bean class name [${bean.name.default}]"
- addproperty="bean.name"
+ <input message="Enter the bean class name [${bean.name.default}]"
+ addproperty="bean.name"
defaultvalue="${bean.name.default}"/>
-
+
<lowercaseProperty name="method.name.default" value="${component.name}"/>
- <input message="Enter the action method name [${method.name.default}]"
- addproperty="method.name"
+ <input message="Enter the action method name [${method.name.default}]"
+ addproperty="method.name"
defaultvalue="${method.name.default}"/>
-
+
<lowercaseProperty name="page.name.default" value="${component.name}"/>
- <input message="Enter the page name [${page.name.default}]"
- addproperty="page.name"
+ <input message="Enter the page name [${page.name.default}]"
+ addproperty="page.name"
defaultvalue="${page.name.default}"/>
-
+
<property name="bean.file" value="${project.home}/src/${action.dir}/${bean.name}.java"/>
<property name="interface.file" value="${project.home}/src/${action.dir}/${interface.name}.java"/>
<property name="page.file" value="${project.home}/view/${page.name}.xhtml"/>
@@ -541,22 +523,22 @@
<property name="testng.file" value="${project.home}/src/${test.dir}/${interface.name}Test.xml"/>
</target>
-
+
<target name="entity-input" depends="init">
-
+
<input addproperty="entity.name" message="Enter the entity class name"/>
<lowercaseProperty name="component.name" value="${entity.name}"/>
-
+
<lowercaseProperty name="masterPage.name.default" value="${component.name}List"/>
- <input message="Enter the master page name [${masterPage.name.default}]"
- addproperty="masterPage.name"
+ <input message="Enter the master page name [${masterPage.name.default}]"
+ addproperty="masterPage.name"
defaultvalue="${masterPage.name.default}"/>
-
+
<lowercaseProperty name="page.name.default" value="${component.name}"/>
- <input message="Enter the detail page name [${page.name.default}]"
- addproperty="page.name"
+ <input message="Enter the detail page name [${page.name.default}]"
+ addproperty="page.name"
defaultvalue="${page.name.default}"/>
-
+
<property name="entity.file" value="${project.home}/src/${model.dir}/${entity.name}.java"/>
<property name="home.file" value="${project.home}/src/${action.dir}/${entity.name}Home.java"/>
<property name="list.file" value="${project.home}/src/${action.dir}/${entity.name}List.java"/>
@@ -564,41 +546,41 @@
<property name="masterPage.file" value="${project.home}/view/${masterPage.name}.xhtml"/>
</target>
-
+
<target name="query-input">
- <property name="entity.name.default" value="Entity" />
- <input addproperty="entity.name"
- message="Enter the entity class to search for [${entity.name.default}]"
- defaultvalue="${entity.name}"/>
+ <property name="entity.name.default" value="Entity"/>
+ <input addproperty="entity.name"
+ message="Enter the entity class to search for [${entity.name.default}]"
+ defaultvalue="${entity.name}"/>
- <property name="entity.file" value="${project.home}/src/${model.dir}/${entity.name}.java" />
- <available property="entity.present" file="${entity.file}" />
+ <property name="entity.file" value="${project.home}/src/${model.dir}/${entity.name}.java"/>
+ <available property="entity.present" file="${entity.file}"/>
<fail unless="entity.present">
The entity ${entity.name} was not found. It was expected to be in ${entity.file}.
</fail>
-
- <lowercaseProperty name="component.name.default" value="${entity.name}Query" />
- <input addproperty="component.name"
- message="Enter the Seam query component name [${component.name.default}]"
- defaultvalue="${component.name.default}" />
-
+
+ <lowercaseProperty name="component.name.default" value="${entity.name}Query"/>
+ <input addproperty="component.name"
+ message="Enter the Seam query component name [${component.name.default}]"
+ defaultvalue="${component.name.default}"/>
+
<uppercaseProperty name="bean.name.default" value="${component.name}"/>
- <input message="Enter the query class name [${bean.name.default}]"
- addproperty="bean.name"
- defaultvalue="${bean.name.default}"/>
-
+ <input message="Enter the query class name [${bean.name.default}]"
+ addproperty="bean.name"
+ defaultvalue="${bean.name.default}"/>
+
<property name="query.default"
- value="select o from ${entity.name} o" />
- <input message="Enter the EJBQL query string [${query.default}]"
- addproperty="query.text"
- defaultvalue="${query.default}" />
+ value="select o from ${entity.name} o"/>
+ <input message="Enter the EJBQL query string [${query.default}]"
+ addproperty="query.text"
+ defaultvalue="${query.default}"/>
<lowercaseProperty name="page.name.default" value="${component.name}"/>
- <input message="Enter the query resuls page name [${page.name.default}]"
- addproperty="page.name"
- defaultvalue="${page.name.default}"/>
-
+ <input message="Enter the query resuls page name [${page.name.default}]"
+ addproperty="page.name"
+ defaultvalue="${page.name.default}"/>
+
<property name="query.file" value="${project.home}/src/${action.dir}/${bean.name}.java"/>
<property name="page.file" value="${project.home}/view/${page.name}.xhtml"/>
</target>
@@ -606,210 +588,210 @@
<target name="copy-lib" depends="copyseam, copyseamdependencies, copyjbossembedded, copy-icefaces-home, copy-icefaces-maven">
- <echo message="Copying Seam and dependencies to the ${project.home}/lib directory..." />
-
+ <echo message="Copying Seam and dependencies to the ${project.home}/lib directory..."/>
+
<copy todir="${project.home}/lib" overwrite="true">
- <fileset dir="../lib">
- <exclude name="jsf-facelets.jar" if="icefaces.property"/>
- <exclude name="ajax4jsf*.jar" if="icefaces.property"/>
- <exclude name="richfaces*.jar" if="icefaces.property"/>
- <exclude name="jboss-container.jar" />
- <exclude name="jboss-seam-wicket.jar" />
- <exclude name="jboss-seam-resteasy.jar" />
- <exclude name="test/jboss-deplyers.jar" />
- <exclude name="test/jboss-embedded-api.jar" />
- <exclude name="interop/**/*" />
- <exclude name="gen/**/*" />
+ <fileset dir="${seam.dir}/lib">
+ <exclude name="jsf-facelets.jar" if="icefaces.property"/>
+ <exclude name="ajax4jsf*.jar" if="icefaces.property"/>
+ <exclude name="richfaces*.jar" if="icefaces.property"/>
+ <exclude name="jboss-container.jar"/>
+ <exclude name="jboss-seam-wicket.jar"/>
+ <exclude name="jboss-seam-resteasy.jar"/>
+ <exclude name="test/jboss-deplyers.jar"/>
+ <exclude name="test/jboss-embedded-api.jar"/>
+ <exclude name="interop/**/*"/>
+ <exclude name="gen/**/*"/>
</fileset>
<fileset file="${driver.jar}"/>
</copy>
- <echo message="Copying JBoss Embedded configuration to the ${project.home}/bootstrap directory..." />
+ <echo message="Copying JBoss Embedded configuration to the ${project.home}/bootstrap directory..."/>
<copy todir="${project.home}/bootstrap" overwrite="true">
- <fileset dir="../bootstrap" />
+ <fileset dir="${seam.dir}/bootstrap"/>
</copy>
-
+
</target>
-
- <target name="copy-icefaces-maven" if="icefaces.property" unless="icefaces.lib.property">
- <artifact:dependencies filesetId="icefaces.fileset" versionsId="icefaces.versions">
- <dependency groupId="org.icefaces" artifactId="icefaces" version="1.7.1">
- <exclusion groupId="javax.el" artifactId="el-api" />
- </dependency>
- <dependency groupId="org.icefaces" artifactId="icefaces-comps" version="1.7.1">
- <exclusion groupId="javax.el" artifactId="el-api" />
- </dependency>
- <dependency groupId="org.icefaces" artifactId="icefaces-facelets" version="1.7.1">
- <exclusion groupId="javax.el" artifactId="el-api" />
- </dependency>
- <remoteRepository refId="repository.jboss.org" />
- </artifact:dependencies>
- <copy todir="${project.home}/lib" overwrite="true">
- <fileset refid="icefaces.fileset" />
- <mapper classpathref="maven-ant-tasks.classpath" classname="org.apache.maven.artifact.ant.VersionMapper" from="${icefaces.versions}" to="flatten" />
- </copy>
- </target>
-
- <target name="copy-icefaces-home" if="icefaces.lib.property">
- <copy todir="${project.home}/lib" overwrite="true">
- <fileset dir="${icefaces.lib}" >
- <include name="icefaces*.jar"/>
- <include name="backport-util-concurrent.jar"/>
- <include name="commons-fileupload.jar"/>
- <include name="commons-digester.jar"/>
- </fileset>
- </copy>
- </target>
-
- <target name="file-copy-war" if="project.war">
- <echo message="Copying resources needed for WAR deployment to the ${project.home}/resources directory..." />
- <copy tofile="${project.home}/resources/WEB-INF/components.xml"
- file="${base.dir}/resources/WEB-INF/components-war.xml">
+ <target name="copy-icefaces-maven" if="icefaces.property" unless="icefaces.lib.property">
+ <artifact:dependencies filesetId="icefaces.fileset" versionsId="icefaces.versions">
+ <dependency groupId="org.icefaces" artifactId="icefaces" version="1.7.1">
+ <exclusion groupId="javax.el" artifactId="el-api"/>
+ </dependency>
+ <dependency groupId="org.icefaces" artifactId="icefaces-comps" version="1.7.1">
+ <exclusion groupId="javax.el" artifactId="el-api"/>
+ </dependency>
+ <dependency groupId="org.icefaces" artifactId="icefaces-facelets" version="1.7.1">
+ <exclusion groupId="javax.el" artifactId="el-api"/>
+ </dependency>
+ <remoteRepository refId="repository.jboss.org"/>
+ </artifact:dependencies>
+ <copy todir="${project.home}/lib" overwrite="true">
+ <fileset refid="icefaces.fileset"/>
+ <mapper classpathref="maven-ant-tasks.classpath" classname="org.apache.maven.artifact.ant.VersionMapper" from="${icefaces.versions}" to="flatten"/>
+ </copy>
+ </target>
+
+ <target name="copy-icefaces-home" if="icefaces.lib.property">
+ <copy todir="${project.home}/lib" overwrite="true">
+ <fileset dir="${icefaces.lib}" >
+ <include name="icefaces*.jar"/>
+ <include name="backport-util-concurrent.jar"/>
+ <include name="commons-fileupload.jar"/>
+ <include name="commons-digester.jar"/>
+ </fileset>
+ </copy>
+ </target>
+
+ <target name="file-copy-war" if="project.war">
+ <echo message="Copying resources needed for WAR deployment to the ${project.home}/resources directory..."/>
+
+ <copy tofile="${project.home}/resources/WEB-INF/components.xml"
+ file="${templates.dir}/resources/WEB-INF/components-war.xml">
<filterset refid="project"/>
</copy>
- <copy tofile="${project.home}/deployed-jars.list"
- file="${base.dir}/build-scripts/deployed-jars-war.list"/>
- <copy tofile="${project.home}/build.xml"
- file="${base.dir}/build-scripts/build-war.xml">
+ <copy tofile="${project.home}/deployed-jars.list"
+ file="${templates.dir}/build-scripts/deployed-jars-war.list"/>
+ <copy tofile="${project.home}/build.xml"
+ file="${templates.dir}/build-scripts/build-war.xml">
<filterset refid="project"/>
</copy>
<copy todir="${project.home}/resources">
- <fileset dir="${base.dir}/resources/">
- <include name="META-INF/orm.xml"/>
- <include name="META-INF/persistence*-war.xml"/>
- <include name="WEB-INF/jboss-web.xml"/>
+ <fileset dir="${templates.dir}/resources/">
+ <include name="META-INF/orm.xml"/>
+ <include name="META-INF/persistence*-war.xml"/>
+ <include name="WEB-INF/jboss-web.xml"/>
</fileset>
<filterset refid="project"/>
<filterset refid="jdbc"/>
</copy>
- <copy todir="${project.home}/src/hot" file="${base.dir}/resources/seam.properties"/>
- <copy todir="${project.home}/src/main" file="${base.dir}/resources/seam.properties"/>
- </target>
-
- <target name="file-copy-ear" unless="project.war">
- <echo message="Copying resources needed for EAR deployment to the ${project.home}/resources directory..." />
-
- <copy tofile="${project.home}/resources/WEB-INF/components.xml"
- file="${base.dir}/resources/WEB-INF/components.xml">
- <filterset refid="project"/>
- </copy>
- <copy tofile="${project.home}/deployed-jars-ear.list"
- file="${base.dir}/build-scripts/deployed-jars-ear.list"/>
- <copy tofile="${project.home}/deployed-jars-war.list"
- file="${base.dir}/build-scripts/deployed-jars-ear-war.list"/>
- <copy tofile="${project.home}/build.xml"
- file="${base.dir}/build-scripts/build.xml">
+ <copy todir="${project.home}/src/hot" file="${templates.dir}/resources/seam.properties"/>
+ <copy todir="${project.home}/src/main" file="${templates.dir}/resources/seam.properties"/>
+ </target>
+
+ <target name="file-copy-ear" unless="project.war">
+ <echo message="Copying resources needed for EAR deployment to the ${project.home}/resources directory..."/>
+
+ <copy tofile="${project.home}/resources/WEB-INF/components.xml"
+ file="${templates.dir}/resources/WEB-INF/components.xml">
+ <filterset refid="project"/>
+ </copy>
+ <copy tofile="${project.home}/deployed-jars-ear.list"
+ file="${templates.dir}/build-scripts/deployed-jars-ear.list"/>
+ <copy tofile="${project.home}/deployed-jars-war.list"
+ file="${templates.dir}/build-scripts/deployed-jars-ear-war.list"/>
+ <copy tofile="${project.home}/build.xml"
+ file="${templates.dir}/build-scripts/build.xml">
<filterset refid="project"/>
</copy>
- <copy todir="${project.home}" overwrite="true">
- <fileset file="../validate.xml"/>
- </copy>
+ <copy todir="${project.home}" overwrite="true">
+ <fileset file="${seam.dir}/validate.xml"/>
+ </copy>
<copy todir="${project.home}/resources">
- <fileset dir="${base.dir}/resources/">
- <include name="META-INF/application.xml"/>
- <include name="META-INF/jboss-app.xml"/>
- <include name="META-INF/ejb-jar.xml"/>
- <include name="META-INF/orm.xml"/>
- <include name="META-INF/persistence*.xml"/>
- <exclude name="META-INF/persistence*-war.xml"/>
+ <fileset dir="${templates.dir}/resources/">
+ <include name="META-INF/application.xml"/>
+ <include name="META-INF/jboss-app.xml"/>
+ <include name="META-INF/ejb-jar.xml"/>
+ <include name="META-INF/orm.xml"/>
+ <include name="META-INF/persistence*.xml"/>
+ <exclude name="META-INF/persistence*-war.xml"/>
</fileset>
<filterset refid="project"/>
<filterset refid="jdbc"/>
</copy>
- </target>
-
+ </target>
+
<target name="file-copy" depends="file-copy-war,file-copy-ear,setup-filters">
- <copy tofile="${project.home}/seam-gen.properties"
- file="./build.properties"/>
+ <copy tofile="${project.home}/seam-gen.properties"
+ file="${seam-gen.dir}/build.properties"/>
- <copy todir="${project.home}/resources/">
- <fileset dir="${basedir}/resources/">
+ <copy todir="${project.home}/resources/">
+ <fileset dir="${seam-gen.dir}/resources/">
<include name="components-*.properties"/>
</fileset>
<filterset>
- <filter token="projectName" value="${project.name}" />
+ <filter token="projectName" value="${project.name}"/>
</filterset>
</copy>
-
+
<copy todir="${project.home}/resources">
- <fileset dir="${base.dir}/resources/">
- <exclude name="datasource-ds.xml"/>
- <exclude name="import.sql"/>
- <exclude name="components-*.properties"/>
- <exclude name="WEB-INF/components*.xml"/>
- <exclude name="META-INF/persistence*.xml"/>
- <exclude name="META-INF/application.xml"/>
- <exclude name="META-INF/jboss-app.xml"/>
- <exclude name="META-INF/ejb-jar.xml"/>
- <exclude name="WEB-INF/jboss-web.xml"/>
+ <fileset dir="${templates.dir}/resources/">
+ <exclude name="datasource-ds.xml"/>
+ <exclude name="import.sql"/>
+ <exclude name="components-*.properties"/>
+ <exclude name="WEB-INF/components*.xml"/>
+ <exclude name="META-INF/persistence*.xml"/>
+ <exclude name="META-INF/application.xml"/>
+ <exclude name="META-INF/jboss-app.xml"/>
+ <exclude name="META-INF/ejb-jar.xml"/>
+ <exclude name="WEB-INF/jboss-web.xml"/>
</fileset>
<filterset refid="project"/>
<filterset refid="jdbc"/>
</copy>
- <copy tofile="${project.home}/debug-jboss-${project.name}.launch"
- file="${base.dir}/build-scripts/debug-jboss.launch">
+ <copy tofile="${project.home}/debug-jboss-${project.name}.launch"
+ file="${templates.dir}/build-scripts/debug-jboss.launch">
<filterset refid="project"/>
</copy>
- <copy tofile="${project.home}/${project.name}.launch"
- file="${base.dir}/hibernatetools/hibernate-console.launch">
+ <copy tofile="${project.home}/${project.name}.launch"
+ file="${templates.dir}/hibernatetools/hibernate-console.launch">
<filterset refid="project"/>
</copy>
- <copy tofile="${project.home}/hibernate-console.properties"
- file="${base.dir}/hibernatetools/hibernate-console.properties">
+ <copy tofile="${project.home}/hibernate-console.properties"
+ file="${templates.dir}/hibernatetools/hibernate-console.properties">
<filterset refid="project"/>
<filterset refid="jdbc"/>
- <filterset>
- <filter token="hibernate.dialect" value="${hibernate.dialect}"/>
- </filterset>
+ <filterset>
+ <filter token="hibernate.dialect" value="${hibernate.dialect}"/>
+ </filterset>
</copy>
- <copy tofile="${project.home}/resources/seam-gen.reveng.xml"
- file="${base.dir}/hibernatetools/seam-gen.reveng.xml">
+ <copy tofile="${project.home}/resources/seam-gen.reveng.xml"
+ file="${templates.dir}/hibernatetools/seam-gen.reveng.xml">
<filterset refid="project"/>
</copy>
- <copy tofile="${project.home}/.settings/org.hibernate.eclipse.console.prefs"
- file="${base.dir}/hibernatetools/.settings/org.hibernate.eclipse.console.prefs">
+ <copy tofile="${project.home}/.settings/org.hibernate.eclipse.console.prefs"
+ file="${templates.dir}/hibernatetools/.settings/org.hibernate.eclipse.console.prefs">
<filterset refid="project"/>
</copy>
- <copy tofile="${project.home}/resources/${project.name}-dev-ds.xml"
- file="${base.dir}/resources/datasource-ds.xml">
+ <copy tofile="${project.home}/resources/${project.name}-dev-ds.xml"
+ file="${templates.dir}/resources/datasource-ds.xml">
<filterset refid="project"/>
<filterset refid="jdbc"/>
</copy>
-
- <copy tofile="${project.home}/resources/${project.name}-prod-ds.xml"
- file="${base.dir}/resources/datasource-ds.xml">
+
+ <copy tofile="${project.home}/resources/${project.name}-prod-ds.xml"
+ file="${templates.dir}/resources/datasource-ds.xml">
<filterset refid="project"/>
<filterset refid="jdbc"/>
</copy>
-
- <copy tofile="${project.home}/resources/import-dev.sql"
- file="${base.dir}/resources/import.sql">
+
+ <copy tofile="${project.home}/resources/import-dev.sql"
+ file="${templates.dir}/resources/import.sql">
<filterset refid="project"/>
<filterset refid="jdbc"/>
</copy>
-
- <copy tofile="${project.home}/resources/import-prod.sql"
- file="${base.dir}/resources/import.sql">
+
+ <copy tofile="${project.home}/resources/import-prod.sql"
+ file="${templates.dir}/resources/import.sql">
<filterset refid="project"/>
<filterset refid="jdbc"/>
</copy>
-
- <copy tofile="${project.home}/resources/import-test.sql"
- file="${base.dir}/resources/import.sql">
+
+ <copy tofile="${project.home}/resources/import-test.sql"
+ file="${templates.dir}/resources/import.sql">
<filterset refid="project"/>
<filterset refid="jdbc"/>
</copy>
-
+
<copy todir="${project.home}/view">
- <fileset id="view" dir="${base.dir}/view">
+ <fileset id="view" dir="${templates.dir}/view">
<include name="home.xhtml"/>
<include name="error.xhtml"/>
<include name="login.xhtml"/>
@@ -823,45 +805,45 @@
</copy>
<!-- Images have to be copied without filter -->
<copy todir="${project.home}/view">
- <fileset id="view" dir="${base.dir}/view">
+ <fileset id="view" dir="${templates.dir}/view">
<include name="favicon.ico"/>
<include name="img/*"/>
</fileset>
</copy>
-
+
<copy todir="${project.home}/src/${action.dir}">
- <fileset dir="${base.dir}/src/">
+ <fileset dir="${templates.dir}/src/">
<include name="Authenticator.java"/>
<include name="Timer*.java" if="icefaces.property"/>
</fileset>
<filterset refid="filters"/>
</copy>
-
+
<copy todir="${project.home}">
- <fileset dir="${base.dir}/build-scripts">
- <exclude name="build*.xml"/>
- <exclude name="*.list"/>
- <exclude name="debug-jboss.launch"/>
+ <fileset dir="${templates.dir}/build-scripts">
+ <exclude name="build*.xml"/>
+ <exclude name="*.list"/>
+ <exclude name="debug-jboss.launch"/>
</fileset>
<filterset refid="project"/>
</copy>
-
+
<mkdir dir="${project.home}/src/${model.dir}"/>
- <mkdir dir="${project.home}/src/${action.dir}"/>
- <mkdir dir="${project.home}/src/${test.dir}"/>
-
- <copy todir="${project.home}/src/test" file="${base.dir}/test/readme.txt" />
+ <mkdir dir="${project.home}/src/${action.dir}"/>
+ <mkdir dir="${project.home}/src/${test.dir}"/>
+ <copy todir="${project.home}/src/test" file="${templates.dir}/test/readme.txt"/>
+
<mkdir dir="${project.home}/nbproject"/>
<copy todir="${project.home}/nbproject">
- <fileset dir="${base.dir}/nbproject" />
+ <fileset dir="${templates.dir}/nbproject"/>
<filterset refid="project"/>
</copy>
</target>
-
+
<target name="validate-project" depends="init-properties, validate-workspace">
- <fail message="No project name specified (run 'seam create-project' first)">
+ <fail message="No project name specified (run 'seam setup' first)">
<condition>
<or>
<not><isset property="project.name"/></not>
@@ -873,18 +855,21 @@
<condition>
<and>
<or>
- <equals arg1="${action.package}" arg2="" />
- <equals arg1="${model.package}" arg2="" />
- <equals arg1="${test.package}" arg2="" />
+ <equals arg1="${action.package}" arg2=""/>
+ <equals arg1="${model.package}" arg2=""/>
+ <equals arg1="${test.package}" arg2=""/>
</or>
<or>
- <not><equals arg1="${action.package}" arg2="" /></not>
- <not><equals arg1="${model.package}" arg2="" /></not>
- <not><equals arg1="${test.package}" arg2="" /></not>
+ <not><equals arg1="${action.package}" arg2=""/></not>
+ <not><equals arg1="${model.package}" arg2=""/></not>
+ <not><equals arg1="${test.package}" arg2=""/></not>
</or>
- </and>
+ </and>
</condition>
</fail>
+ <condition property="project.exists">
+ <available file="${project.home}/build.xml"/>
+ </condition>
</target>
<target name="validate-workspace">
@@ -897,164 +882,164 @@
</condition>
</fail>
</target>
-
- <!-- Do not remove new-project, netbeans depends on it -->
- <target name="new-project" depends="create-project" />
+
+ <!-- Do not remove new-project, netbeans depends on it -->
+ <target name="new-project" depends="create-project"/>
<target name="create-project" depends="validate-project,icefaces-staging-copy,copy-lib,file-copy"
description="Create a new project">
<echo message="A new Seam project named '${project.name}' was created in the ${workspace.home} directory"/>
- <echo message="Type 'seam explode' and go to http://localhost:8080/${project.name}"/>
- <echo message="Eclipse Users: Add the project into Eclipse using File > New > Project and select General > Project (not Java Project)"/>
- <echo message="NetBeans Users: Open the project in NetBeans"/>
+ <echo message="Type '${seam.cmd} explode' and go to http://localhost:8080/${project.name}"/>
+ <echo message="Eclipse Users: Add the project into Eclipse using File > New > Project and select General > Project (not Java Project)"/>
+ <echo message="NetBeans Users: Open the project in NetBeans"/>
</target>
<target name="update-project" depends="validate-project,copy-lib"
description="Update project dependencies">
- <echo message="Updated project '${project.name}' with the latest Seam jars" />
- <echo message="Type 'seam restart' to update the exploded deployment"/>
+ <echo message="Updated project '${project.name}' with the latest Seam jars"/>
+ <echo message="Type '${seam.cmd} restart' to update the exploded deployment"/>
</target>
<target name="delete-project" depends="validate-project,unexplode,undeploy"
description="Delete the project">
- <echo message="Deleting the entire project in ${project.home}" />
- <delete dir="${project.home}" />
+ <echo message="Deleting the entire project in ${project.home}"/>
+ <delete dir="${project.home}"/>
</target>
-
- <target name="new-action" depends="new-action-ear,new-action-war"
+
+ <target name="new-action" depends="new-action-ear,new-action-war"
description="Create a new action"/>
- <target name="new-form" depends="new-form-ear,new-form-war"
+ <target name="new-form" depends="new-form-ear,new-form-war"
description="Create a new form action"/>
- <target name="new-conversation" depends="new-conversation-ear,new-conversation-war"
+ <target name="new-conversation" depends="new-conversation-ear,new-conversation-war"
description="Create a new conversation controller"/>
<target name="new-action-ear" depends="validate-project,action-input,setup-filters" unless="project.war">
- <echo message="Creating a new stateless session bean component with an action method" />
- <copy file="${base.dir}/src/ActionBean.java" tofile="${bean.file}">
+ <echo message="Creating a new stateless session bean component with an action method"/>
+ <copy file="${templates.dir}/src/ActionBean.java" tofile="${bean.file}">
<filterset refid="filters"/>
</copy>
- <copy file="${base.dir}/src/Action.java" tofile="${interface.file}">
+ <copy file="${templates.dir}/src/Action.java" tofile="${interface.file}">
<filterset refid="filters"/>
</copy>
- <copy file="${base.dir}/test/ActionTest.java" tofile="${test.file}">
+ <copy file="${templates.dir}/test/ActionTest.java" tofile="${test.file}">
<filterset refid="filters"/>
</copy>
- <copy file="${base.dir}/test/testng.xml" tofile="${testng.file}">
+ <copy file="${templates.dir}/test/testng.xml" tofile="${testng.file}">
<filterset refid="filters"/>
</copy>
- <copy file="${base.dir}/view/action.xhtml" tofile="${page.file}">
+ <copy file="${templates.dir}/view/action.xhtml" tofile="${page.file}">
<filterset refid="filters"/>
</copy>
- <echo message="Type 'seam restart' and go to http://localhost:8080/${project.name}/${page.name}.seam"/>
+ <echo message="Type '${seam.cmd} restart' and go to http://localhost:8080/${project.name}/${page.name}.seam"/>
</target>
<target name="new-action-war" depends="validate-project,action-input,setup-filters" if="project.war">
- <echo message="Creating a new JavaBean component with an action method" />
- <copy file="${base.dir}/src/ActionJavaBean.java" tofile="${interface.file}">
+ <echo message="Creating a new JavaBean component with an action method"/>
+ <copy file="${templates.dir}/src/ActionJavaBean.java" tofile="${interface.file}">
<filterset refid="filters"/>
</copy>
- <copy file="${base.dir}/test/ActionTest.java" tofile="${test.file}">
+ <copy file="${templates.dir}/test/ActionTest.java" tofile="${test.file}">
<filterset refid="filters"/>
</copy>
- <copy file="${base.dir}/test/testng.xml" tofile="${testng.file}">
+ <copy file="${templates.dir}/test/testng.xml" tofile="${testng.file}">
<filterset refid="filters"/>
</copy>
- <copy file="${base.dir}/view/action.xhtml" tofile="${page.file}">
+ <copy file="${templates.dir}/view/action.xhtml" tofile="${page.file}">
<filterset refid="filters"/>
</copy>
- <echo message="Type 'seam explode' and go to http://localhost:8080/${project.name}/${page.name}.seam"/>
+ <echo message="Type '${seam.cmd} explode' and go to http://localhost:8080/${project.name}/${page.name}.seam"/>
</target>
<target name="new-form-war" depends="validate-project,action-input,setup-filters" if="project.war">
- <echo message="Creating a new JavaBean component with an action method" />
- <copy file="${base.dir}/src/FormActionJavaBean.java" tofile="${interface.file}">
+ <echo message="Creating a new JavaBean component with an action method"/>
+ <copy file="${templates.dir}/src/FormActionJavaBean.java" tofile="${interface.file}">
<filterset refid="filters"/>
</copy>
- <copy file="${base.dir}/test/FormTest.java" tofile="${test.file}">
+ <copy file="${templates.dir}/test/FormTest.java" tofile="${test.file}">
<filterset refid="filters"/>
</copy>
- <copy file="${base.dir}/view/form.xhtml" tofile="${page.file}">
+ <copy file="${templates.dir}/view/form.xhtml" tofile="${page.file}">
<filterset refid="filters"/>
</copy>
- <copy file="${base.dir}/test/testng.xml" tofile="${testng.file}">
+ <copy file="${templates.dir}/test/testng.xml" tofile="${testng.file}">
<filterset refid="filters"/>
</copy>
- <echo message="Type 'seam explode' and go to http://localhost:8080/${project.name}/${page.name}.seam"/>
+ <echo message="Type '${seam.cmd} explode' and go to http://localhost:8080/${project.name}/${page.name}.seam"/>
</target>
<target name="new-form-ear" depends="validate-project,action-input,setup-filters" unless="project.war">
- <echo message="Creating a new stateful session bean component with an action method" />
- <copy file="${base.dir}/src/FormActionBean.java" tofile="${bean.file}">
+ <echo message="Creating a new stateful session bean component with an action method"/>
+ <copy file="${templates.dir}/src/FormActionBean.java" tofile="${bean.file}">
<filterset refid="filters"/>
</copy>
- <copy file="${base.dir}/src/FormAction.java" tofile="${interface.file}">
+ <copy file="${templates.dir}/src/FormAction.java" tofile="${interface.file}">
<filterset refid="filters"/>
</copy>
- <copy file="${base.dir}/test/FormTest.java" tofile="${test.file}">
+ <copy file="${templates.dir}/test/FormTest.java" tofile="${test.file}">
<filterset refid="filters"/>
</copy>
- <copy file="${base.dir}/view/form.xhtml" tofile="${page.file}">
+ <copy file="${templates.dir}/view/form.xhtml" tofile="${page.file}">
<filterset refid="filters"/>
</copy>
- <copy file="${base.dir}/test/testng.xml" tofile="${testng.file}">
+ <copy file="${templates.dir}/test/testng.xml" tofile="${testng.file}">
<filterset refid="filters"/>
</copy>
- <echo message="Type 'seam restart' and go to http://localhost:8080/${project.name}/${page.name}.seam"/>
+ <echo message="Type '${seam.cmd} restart' and go to http://localhost:8080/${project.name}/${page.name}.seam"/>
</target>
<target name="new-query" depends="validate-project,query-input,setup-filters">
- <echo message="Creating a new query" />
- <copy file="${base.dir}/src/Query.java" tofile="${query.file}">
+ <echo message="Creating a new query"/>
+ <copy file="${templates.dir}/src/Query.java" tofile="${query.file}">
<filterset refid="filters"/>
</copy>
- <copy file="${base.dir}/view/query.xhtml" tofile="${page.file}">
+ <copy file="${templates.dir}/view/query.xhtml" tofile="${page.file}">
<filterset refid="filters"/>
</copy>
- <echo message="Type 'seam restart' and go to http://localhost:8080/${project.name}/${page.name}.seam"/>
+ <echo message="Type '${seam.cmd} restart' and go to http://localhost:8080/${project.name}/${page.name}.seam"/>
</target>
<target name="new-conversation-ear" depends="validate-project,action-input,setup-filters" unless="project.war">
- <echo message="Creating a new stateful session bean component with @Begin and @End methods" />
- <copy file="${base.dir}/src/ConversationBean.java" tofile="${bean.file}">
+ <echo message="Creating a new stateful session bean component with @Begin and @End methods"/>
+ <copy file="${templates.dir}/src/ConversationBean.java" tofile="${bean.file}">
<filterset refid="filters"/>
</copy>
- <copy file="${base.dir}/src/Conversation.java" tofile="${interface.file}">
+ <copy file="${templates.dir}/src/Conversation.java" tofile="${interface.file}">
<filterset refid="filters"/>
</copy>
- <copy file="${base.dir}/view/conversation.xhtml" tofile="${page.file}">
+ <copy file="${templates.dir}/view/conversation.xhtml" tofile="${page.file}">
<filterset refid="filters"/>
</copy>
- <echo message="Type 'seam restart' and go to http://localhost:8080/${project.name}/${page.name}.seam"/>
+ <echo message="Type '${seam.cmd} restart' and go to http://localhost:8080/${project.name}/${page.name}.seam"/>
</target>
<target name="new-conversation-war" depends="validate-project,action-input,setup-filters" if="project.war">
- <echo message="Creating a new JavaBean component with @Begin and @End methods" />
- <copy file="${base.dir}/src/ConversationJavaBean.java" tofile="${interface.file}">
+ <echo message="Creating a new JavaBean component with @Begin and @End methods"/>
+ <copy file="${templates.dir}/src/ConversationJavaBean.java" tofile="${interface.file}">
<filterset refid="filters"/>
</copy>
- <copy file="${base.dir}/view/conversation.xhtml" tofile="${page.file}">
+ <copy file="${templates.dir}/view/conversation.xhtml" tofile="${page.file}">
<filterset refid="filters"/>
</copy>
- <echo message="Type 'seam explode' and go to http://localhost:8080/${project.name}/${page.name}.seam"/>
+ <echo message="Type '${seam.cmd} explode' and go to http://localhost:8080/${project.name}/${page.name}.seam"/>
</target>
<target name="new-entity" depends="validate-project,entity-input,setup-filters"
description="Create a new entity">
- <echo message="Creating a new entity bean, with home and list components" />
- <copy file="${base.dir}/src/Entity.java" tofile="${entity.file}">
+ <echo message="Creating a new entity bean, with home and list components"/>
+ <copy file="${templates.dir}/src/Entity.java" tofile="${entity.file}">
<filterset refid="filters"/>
</copy>
- <copy file="${base.dir}/src/EntityHome.java" tofile="${home.file}">
+ <copy file="${templates.dir}/src/EntityHome.java" tofile="${home.file}">
<filterset refid="filters"/>
</copy>
- <copy file="${base.dir}/src/EntityList.java" tofile="${list.file}">
+ <copy file="${templates.dir}/src/EntityList.java" tofile="${list.file}">
<filterset refid="filters"/>
</copy>
- <copy file="${base.dir}/view/edit.xhtml" tofile="${page.file}">
+ <copy file="${templates.dir}/view/edit.xhtml" tofile="${page.file}">
<filterset refid="filters"/>
</copy>
- <copy file="${base.dir}/view/list.xhtml" tofile="${masterPage.file}">
+ <copy file="${templates.dir}/view/list.xhtml" tofile="${masterPage.file}">
<filterset refid="filters"/>
</copy>
<replace file="${project.home}/view/layout/menu.xhtml">
@@ -1063,206 +1048,199 @@
<!-- @newMenuItem@ -->]]></replacevalue>
</replace>
<replace file="${project.home}/view/layout/menu.xhtml">
- <replacefilter token="@masterPageName@" value="${masterPage.name}" />
- <replacefilter token="@entityName@" value="${entity.name}" />
+ <replacefilter token="@masterPageName@" value="${masterPage.name}"/>
+ <replacefilter token="@entityName@" value="${entity.name}"/>
</replace>
- <echo message="Type 'seam restart' and go to http://localhost:8080/${project.name}/${masterPage.name}.seam"/>
+ <echo message="Type '${seam.cmd} restart' and go to http://localhost:8080/${project.name}/${masterPage.name}.seam"/>
</target>
- <!-- Do not remove generate-entities, netbeans depends on it -->
- <target name="generate-entities" depends="generate" />
- <target name="generate" depends="validate-project,generate-model,generate-ui"
+ <!-- Do not remove generate-entities, netbeans depends on it -->
+ <target name="generate-entities" depends="generate"/>
+ <target name="generate" depends="validate-project,generate-model,generate-ui"
description="Reverse engineer entities from the database">
- </target>
-
- <target name="init-generate">
- <path id="htools.classpath">
- <pathelement path="../lib/ant.jar"/>
- <pathelement path="../lib/gen/hibernate-tools.jar"/>
- <pathelement path="../lib/gen/freemarker.jar"/>
- <pathelement path="../lib/jboss-seam.jar"/>
- <pathelement path="../lib/gen/runtime.jar"/>
- <pathelement path="../lib/gen/common.jar"/>
- <pathelement path="../lib/gen/text.jar"/>
- <pathelement path="../lib/dom4j.jar" />
- <pathelement path="../lib/persistence-api.jar" />
- <pathelement path="../lib/hibernate.jar" />
- <pathelement path="../lib/hibernate-commons-annotations.jar" />
- <pathelement path="../lib/hibernate-annotations.jar" />
- <pathelement path="../lib/hibernate-entitymanager.jar" />
- <pathelement path="../lib/hibernate-validator.jar"/>
- <pathelement path="../lib/commons-collections.jar" />
- <pathelement path="../lib/commons-logging.jar" />
- <pathelement path="../lib/javassist.jar" />
- <pathelement path="../lib/cglib.jar" />
- <pathelement path="../lib/asm.jar" />
- <pathelement path="../lib/core.jar" />
- <pathelement path="../lib/jboss-common-core.jar" />
- <pathelement path="../lib/concurrent.jar"/>
- <pathelement path="${driver.jar}"/>
- <pathelement path="../lib/gen/jboss-seam-gen.jar"/>
+ </target>
+
+ <target name="init-generate">
+ <path id="htools.classpath">
+ <pathelement path="${seam.dir}/lib/ant.jar"/>
+ <pathelement path="${seam.dir}/lib/gen/hibernate-tools.jar"/>
+ <pathelement path="${seam.dir}/lib/gen/freemarker.jar"/>
+ <pathelement path="${seam.dir}/lib/jboss-seam.jar"/>
+ <pathelement path="${seam.dir}/lib/gen/runtime.jar"/>
+ <pathelement path="${seam.dir}/lib/gen/common.jar"/>
+ <pathelement path="${seam.dir}/lib/gen/text.jar"/>
+ <pathelement path="${seam.dir}/lib/dom4j.jar"/>
+ <pathelement path="${seam.dir}/lib/persistence-api.jar"/>
+ <pathelement path="${seam.dir}/lib/hibernate.jar"/>
+ <pathelement path="${seam.dir}/lib/hibernate-commons-annotations.jar"/>
+ <pathelement path="${seam.dir}/lib/hibernate-annotations.jar"/>
+ <pathelement path="${seam.dir}/lib/hibernate-entitymanager.jar"/>
+ <pathelement path="${seam.dir}/lib/hibernate-validator.jar"/>
+ <pathelement path="${seam.dir}/lib/commons-collections.jar"/>
+ <pathelement path="${seam.dir}/lib/commons-logging.jar"/>
+ <pathelement path="${seam.dir}/lib/javassist.jar"/>
+ <pathelement path="${seam.dir}/lib/cglib.jar"/>
+ <pathelement path="${seam.dir}/lib/asm.jar"/>
+ <pathelement path="${seam.dir}/lib/core.jar"/>
+ <pathelement path="${seam.dir}/lib/jboss-common-core.jar"/>
+ <pathelement path="${seam.dir}/lib/concurrent.jar"/>
+ <pathelement path="${driver.jar}"/>
+ <pathelement path="${seam.dir}/lib/gen/jboss-seam-gen.jar"/>
</path>
- <taskdef name="hibernate" classname="org.hibernate.tool.ant.HibernateToolTask" classpathref="htools.classpath"/>
- </target>
-
- <target name="generate-model" depends="validate-project,init-generate">
- <echo message="Reverse engineering database using JDBC driver ${driver.jar}"/>
+ <taskdef name="hibernate" classname="org.hibernate.tool.ant.HibernateToolTask" classpathref="htools.classpath"/>
+ </target>
+
+ <target name="generate-model" depends="validate-project,init-generate">
+ <echo message="Reverse engineering database using JDBC driver ${driver.jar}"/>
<echo>project=${project.home}</echo>
<echo>model=${model.package}</echo>
- <hibernate templatepath="${base.dir}">
- <jdbcconfiguration propertyfile="build.properties"
+ <hibernate templatepath="${templates.dir}">
+ <jdbcconfiguration propertyfile="${seam-gen.properties}"
packagename="${model.package}"
revengfile="${project.home}/resources/seam-gen.reveng.xml"
detectmanytomany="false"/>
-
- <property key="hibernatetool.util.toolclass"
- value="org.jboss.seam.tool.Util"/>
-
+
+ <property key="hibernatetool.util.toolclass"
+ value="org.jboss.seam.tool.Util"/>
+
<hbm2java jdk5="true" ejb3="true" destdir="${project.home}/src/main"/>
- </hibernate>
+ </hibernate>
- <taskdef name="javaformatter"
- classname="org.hibernate.tool.ant.JavaFormatterTask" classpathref="htools.classpath"/>
+ <taskdef name="javaformatter"
+ classname="org.hibernate.tool.ant.JavaFormatterTask" classpathref="htools.classpath"/>
- <javaformatter>
- <fileset dir="${project.home}/src/main">
- <include name="**/*.java"/>
- </fileset>
- </javaformatter>
+ <javaformatter>
+ <fileset dir="${project.home}/src/main">
+ <include name="**/*.java"/>
+ </fileset>
+ </javaformatter>
- </target>
-
- <target name="generate-ui" depends="validate-project,init-generate" description="Build the ui based on existing entities">
- <echo message="Building project '${project.name}' to generate views and controllers" />
+ </target>
- <condition property="project.jar.target" value="jar">
- <equals arg1="${project.type}" arg2="ear" />
- </condition>
- <condition property="project.jar.target" value="war">
- <equals arg1="${project.type}" arg2="war" />
- </condition>
+ <target name="generate-ui" depends="validate-project,init-generate" description="Build the ui based on existing entities">
+ <echo message="Building project '${project.name}' to generate views and controllers"/>
- <ant antfile="${project.home}/build.xml" target="${project.jar.target}" inheritall="false"/>
- <hibernate templatepath="${base.dir}">
-
- <jpaconfiguration persistenceunit="${project.name}" />
- <classpath>
- <dirset dir="${project.home}/exploded-archives">
- <include name="*.war/WEB-INF/classes" if="project.war" />
- <include name="*.war/WEB-INF/dev" if="project.war" />
- <include name="*.jar" if="project.ear" />
- </dirset>
- </classpath>
- <property key="hibernatetool.util.toolclass" value="org.jboss.seam.tool.Util"/>
- <hbmtemplate filepattern="{class-name}List.xhtml"
- template="view/list.xhtml.ftl"
- destdir="${project.home}/view"
- foreach="entity"/>
- <hbmtemplate filepattern="{class-name}.xhtml"
- template="view/view.xhtml.ftl"
- destdir="${project.home}/view"
+ <condition property="project.jar.target" value="jar">
+ <equals arg1="${project.type}" arg2="ear"/>
+ </condition>
+ <condition property="project.jar.target" value="war">
+ <equals arg1="${project.type}" arg2="war"/>
+ </condition>
+
+ <ant antfile="${project.home}/build.xml" target="${project.jar.target}" inheritall="false"/>
+ <hibernate templatepath="${templates.dir}">
+
+ <jpaconfiguration persistenceunit="${project.name}"/>
+ <classpath>
+ <dirset dir="${project.home}/exploded-archives">
+ <include name="*.war/WEB-INF/classes" if="project.war"/>
+ <include name="*.war/WEB-INF/dev" if="project.war"/>
+ <include name="*.jar" if="project.ear"/>
+ </dirset>
+ </classpath>
+ <property key="hibernatetool.util.toolclass" value="org.jboss.seam.tool.Util"/>
+ <hbmtemplate filepattern="{class-name}List.xhtml"
+ template="view/list.xhtml.ftl"
+ destdir="${project.home}/view"
foreach="entity"/>
- <hbmtemplate filepattern="{class-name}.page.xml"
- template="view/view.page.xml.ftl"
- destdir="${project.home}/view"
+ <hbmtemplate filepattern="{class-name}.xhtml"
+ template="view/view.xhtml.ftl"
+ destdir="${project.home}/view"
foreach="entity"/>
- <hbmtemplate filepattern="{class-name}Edit.xhtml"
- template="view/edit.xhtml.ftl"
- destdir="${project.home}/view"
+ <hbmtemplate filepattern="{class-name}.page.xml"
+ template="view/view.page.xml.ftl"
+ destdir="${project.home}/view"
foreach="entity"/>
- <hbmtemplate filepattern="{class-name}Edit.page.xml"
- template="view/edit.page.xml.ftl"
- destdir="${project.home}/view"
+ <hbmtemplate filepattern="{class-name}Edit.xhtml"
+ template="view/edit.xhtml.ftl"
+ destdir="${project.home}/view"
foreach="entity"/>
- <hbmtemplate filepattern="${action.dir}/{class-name}List.java"
- template="src/EntityList.java.ftl"
- destdir="${project.home}/src"
+ <hbmtemplate filepattern="{class-name}Edit.page.xml"
+ template="view/edit.page.xml.ftl"
+ destdir="${project.home}/view"
+ foreach="entity"/>
+ <hbmtemplate filepattern="${action.dir}/{class-name}List.java"
+ template="src/EntityList.java.ftl"
+ destdir="${project.home}/src"
foreach="entity">
- <property key="actionPackage" value="${action.package}" />
- </hbmtemplate>
- <hbmtemplate filepattern="{class-name}List.page.xml"
- template="view/list.page.xml.ftl"
- destdir="${project.home}/view"
+ <property key="actionPackage" value="${action.package}"/>
+ </hbmtemplate>
+ <hbmtemplate filepattern="{class-name}List.page.xml"
+ template="view/list.page.xml.ftl"
+ destdir="${project.home}/view"
foreach="entity"/>
- <hbmtemplate filepattern="${action.dir}/{class-name}Home.java"
- template="src/EntityHome.java.ftl"
- destdir="${project.home}/src"
+ <hbmtemplate filepattern="${action.dir}/{class-name}Home.java"
+ template="src/EntityHome.java.ftl"
+ destdir="${project.home}/src"
foreach="entity">
- <property key="actionPackage" value="${action.package}" />
- </hbmtemplate>
- <hbmtemplate filepattern="menu.xhtml"
- template="view/layout/menu.xhtml.ftl"
- destdir="${project.home}/view/layout"
+ <property key="actionPackage" value="${action.package}"/>
+ </hbmtemplate>
+ <hbmtemplate filepattern="menu.xhtml"
+ template="view/layout/menu.xhtml.ftl"
+ destdir="${project.home}/view/layout"
foreach="entity"/>
- </hibernate>
+ </hibernate>
- <taskdef name="javaformatter"
- classname="org.hibernate.tool.ant.JavaFormatterTask" classpathref="htools.classpath"/>
+ <taskdef name="javaformatter"
+ classname="org.hibernate.tool.ant.JavaFormatterTask" classpathref="htools.classpath"/>
- <javaformatter>
- <fileset dir="${project.home}/src/hot">
- <include name="**/*.java"/>
- </fileset>
- </javaformatter>
+ <javaformatter>
+ <fileset dir="${project.home}/src/hot">
+ <include name="**/*.java"/>
+ </fileset>
+ </javaformatter>
- <echo message="Type 'seam restart' and go to http://localhost:8080/${project.name}"/>
-
+ <echo message="Type '${seam.cmd} restart' and go to http://localhost:8080/${project.name}"/>
</target>
-
- <target name="archive" depends="validate-project"
- description="Create the EAR or WAR archive">
- <echo message="Building ${project.type} archive for '${project.name}'" />
+
+ <target name="archive" depends="validate-project" description="Create the EAR or WAR archive">
+ <echo message="Building ${project.type} archive for '${project.name}'"/>
<ant antfile="${project.home}/build.xml" target="archive" inheritall="false"/>
</target>
- <target name="deploy" depends="validate-project"
- description="Deploy the EAR or WAR">
- <echo message="Deploying project '${project.name}' to JBoss" />
+ <target name="deploy" depends="validate-project" description="Deploy the EAR or WAR">
+ <echo message="Deploying project '${project.name}' to JBoss"/>
<ant antfile="${project.home}/build.xml" target="deploy" inheritall="false"/>
</target>
- <target name="undeploy" depends="validate-project"
+ <target name="undeploy" depends="validate-project" if="project.exists"
description="Undeploy the EAR or WAR archive">
- <echo message="Undeploying project '${project.name}'" />
+ <echo message="Undeploying project '${project.name}'"/>
<ant antfile="${project.home}/build.xml" target="undeploy" inheritall="false"/>
</target>
<target name="explode" depends="validate-project"
description="Deploy the project as an exploded directory">
- <echo message="Deploying project '${project.name}' to JBoss as an exploded directory" />
+ <echo message="Deploying project '${project.name}' to JBoss as an exploded directory"/>
<ant antfile="${project.home}/build.xml" target="explode" inheritall="false"/>
</target>
- <target name="restart" depends="validate-project"
- description="Restart the exploded directory">
- <echo message="Restarting project '${project.name}'" />
+ <target name="restart" depends="validate-project" description="Restart the exploded directory">
+ <echo message="Restarting project '${project.name}'"/>
<ant antfile="${project.home}/build.xml" target="restart" inheritall="false"/>
</target>
- <target name="unexplode" depends="validate-project"
+ <target name="unexplode" depends="validate-project" if="project.exists"
description="Undeploy the exploded directory">
- <echo message="Undeploying exploded directory for project '${project.name}'" />
+ <echo message="Undeploying exploded directory for project '${project.name}'"/>
<ant antfile="${project.home}/build.xml" target="unexplode" inheritall="false"/>
</target>
-
- <target name="test" depends="validate-project"
- description="Run the automated tests">
- <echo message="Running tests for project '${project.name}'" />
+
+ <target name="test" depends="validate-project" description="Run the automated tests">
+ <echo message="Running tests for project '${project.name}'"/>
<ant antfile="${project.home}/build.xml" target="test" inheritall="false"/>
</target>
- <target name="clean" depends="validate-project"
- description="Clean the project directory">
- <echo message="Cleaning project '${project.name}'" />
+ <target name="clean" depends="validate-project" description="Clean the project directory">
+ <echo message="Cleaning project '${project.name}'"/>
<ant antfile="${project.home}/build.xml" target="clean" inheritall="false"/>
</target>
- <target name="reset"
- description="Delete the settings">
- <delete file="build.properties"/>
+ <target name="reset" description="Delete the settings">
+ <delete file="${seam-gen.properties}"/>
</target>
-
- <target name="settings" depends="init-properties"
+
+ <target name="settings" depends="validate-project"
description="Print the settings">
<echo message="Java project workspace: ${workspace.home}"/>
<echo message="JBoss home: ${jboss.home}"/>
@@ -1275,9 +1253,9 @@
<echo message="Database username: ${hibernate.connection.username}"/>
<echo message="Database password: ${hibernate.connection.password}"/>
</target>
-
+
<target name="help" depends="init">
- <print file="README"/>
+ <print file="${seam-gen.dir}/README"/>
</target>
</project>
Modified: trunk/seam.bat
===================================================================
--- trunk/seam.bat 2008-10-09 06:48:29 UTC (rev 9244)
+++ trunk/seam.bat 2008-10-09 07:54:56 UTC (rev 9245)
@@ -2,31 +2,40 @@
@if not "%ECHO%" == "" echo %ECHO%
@if "%OS%" == "Windows_NT" setlocal
-set DIRNAME=.\
+set WORKING_DIR=%CD%
+set SEAM_DIR=%~dp0
+if "%SEAM_DIR:~-1%" == "\" set SEAM_DIR=%SEAM_DIR:~0,-1%
+set SEAM_GEN_DIR=%SEAM_DIR%\seam-gen
+set COMMAND=%1%
+set ARGS=%*
-if "%OS%" == "Windows_NT" set DIRNAME=%~dp0%
-set PROGNAME=seam.bat
-if "%OS%" == "Windows_NT" set PROGNAME=%~nx0%
+if [%COMMAND%] == [] (goto usage)
-set SEAMGENDIR="%DIRNAME%\seam-gen"
+if %COMMAND% == help (goto help)
-set SEAMTASK=%1%
-set ARGS=%ARGS% %*
+if ["%JAVA_HOME%"] == [] (goto nojava)
-if [%1] == [] (goto usage)
+if not exist "%JAVA_HOME%\bin\javac.exe" (goto nojdk)
-if %SEAMTASK% == help (goto help)
+java -cp "%JAVA_HOME%\lib\tools.jar;%SEAM_DIR%\build\lib\ant-launcher.jar;%SEAM_DIR%\build\lib\ant-nodeps.jar;%SEAM_DIR%\build\lib\ant.jar" -Dant.home="%SEAM_DIR%\lib" org.apache.tools.ant.launch.Launcher -buildfile "%SEAM_GEN_DIR%\build.xml" -Dworking.dir=%WORKING_DIR% %ARGS%
-java -cp "%JAVA_HOME%\lib\tools.jar;%DIRNAME%\build\lib\ant-launcher.jar;%DIRNAME%\build\lib\ant-nodeps.jar;%DIRNAME%\build\lib\ant.jar" -Dant.home="%DIRNAME%\lib" org.apache.tools.ant.launch.Launcher -buildfile "%SEAMGENDIR%\build.xml" %ARGS%
+goto END_NO_PAUSE
+:nojava
+echo The JAVA_HOME environment variable is not set
+echo Please point it to a valid JDK installation
goto END_NO_PAUSE
+:nojdk
+echo The JAVA_HOME environment variable should point to a JDK, not a JRE
+goto END_NO_PAUSE
+
:usage
-more %SEAMGENDIR%\USAGE
+more %SEAM_GEN_DIR%\USAGE
goto END_NO_PAUSE
:help
-more %SEAMGENDIR%\README
+more %SEAM_GEN_DIR%\README
goto END_NO_PAUSE
-:END_NO_PAUSE
+:END_NO_PAUSE
\ No newline at end of file
16 years, 2 months