Author: pete.muir(a)jboss.org
Date: 2008-10-04 10:04:33 -0400 (Sat, 04 Oct 2008)
New Revision: 9189
Modified:
trunk/seam-gen/build-scripts/build-war.xml
trunk/seam-gen/build-scripts/build.xml
trunk/src/main/org/jboss/seam/init/Initialization.java
Log:
JBSEAM-3499
Modified: trunk/seam-gen/build-scripts/build-war.xml
===================================================================
--- trunk/seam-gen/build-scripts/build-war.xml 2008-10-04 12:32:59 UTC (rev 9188)
+++ trunk/seam-gen/build-scripts/build-war.xml 2008-10-04 14:04:33 UTC (rev 9189)
@@ -146,7 +146,7 @@
</fileset>
</copy>
- <copy tofile="${war.dir}/components.properties"
+ <copy tofile="${war.dir}/WEB-INF/classes/components.properties"
file="${basedir}/resources/components-${profile}.properties"
overwrite="true"/>
Modified: trunk/seam-gen/build-scripts/build.xml
===================================================================
--- trunk/seam-gen/build-scripts/build.xml 2008-10-04 12:32:59 UTC (rev 9188)
+++ trunk/seam-gen/build-scripts/build.xml 2008-10-04 14:04:33 UTC (rev 9189)
@@ -103,7 +103,7 @@
<copy todir="${war.dir}">
<fileset dir="${basedir}/view" />
</copy>
- <copy tofile="${war.dir}/components.properties"
+ <copy
tofile="${war.dir}/WEB-INF/classes/components.properties"
file="${basedir}/resources/components-${profile}.properties"
overwrite="true"/>
<copy todir="${war.dir}/WEB-INF">
Modified: trunk/src/main/org/jboss/seam/init/Initialization.java
===================================================================
--- trunk/src/main/org/jboss/seam/init/Initialization.java 2008-10-04 12:32:59 UTC (rev
9188)
+++ trunk/src/main/org/jboss/seam/init/Initialization.java 2008-10-04 14:04:33 UTC (rev
9189)
@@ -227,7 +227,7 @@
try
{
Properties replacements = new Properties();
- InputStream replaceStream =
Resources.getResourceAsStream("components.properties", servletContext);
+ InputStream replaceStream =
Resources.getResourceAsStream("/components.properties", servletContext);
if (replaceStream != null) replacements.load(replaceStream);
return replacements;
}