[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-485) Add support to configure Scanner to ignore certain names
by jarkko Lietolahti (JIRA)
Add support to configure Scanner to ignore certain names
--------------------------------------------------------
Key: JBSEAM-485
URL: http://jira.jboss.com/jira/browse/JBSEAM-485
Project: JBoss Seam
Issue Type: Feature Request
Components: Core
Affects Versions: 1.1.0.CR1
Reporter: jarkko Lietolahti
Priority: Trivial
Make it possibe to configure Scanner to ignore certain files/directories. E.g. in development we're deploying Seam EAR as an exploded EAR with exploded WAR's and JAR's inside it and we use SVN for version control. SVN uses ".svn" directories to store metadata. Seam startup logs shows that scanning the .svn directories take some time and there're never going to be anything usefull for Seam in there anyways.
Simple fix:
private void handleDirectory(Set<Class<Object>> result, File file,
String path)
{
log.debug("directory: " + file);
for (File child : file.listFiles())
{
String newPath = path == null ? child.getName() : path + '/'
+ child.getName();
if (child.getName().startsWith(".svn"))
{
continue;
}
if (child.isDirectory())
{
handleDirectory(result, child, newPath);
} else
{
handleItem(result, newPath);
}
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 11 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-4400) SeleniumDateSelector cannot be compiled with JDK 5
by Ondrej Skutka (JIRA)
SeleniumDateSelector cannot be compiled with JDK 5
--------------------------------------------------
Key: JBSEAM-4400
URL: https://jira.jboss.org/jira/browse/JBSEAM-4400
Project: Seam
Issue Type: Bug
Components: Test Harness
Affects Versions: 2.2.1.CR1
Reporter: Ondrej Skutka
Assignee: Karel Piwko
Priority: Critical
Fix For: 2.2.1.CR1
src/test/ftest/src/main/org/jboss/seam/example/common/test/selenium/SeleniumDateSelector.java cannot be compiled using JDK 5:
[javac] /mnt/hudson_workspace/workspace/Seam-2.2.X-ftest-jboss5/jdk/java15/label/RHEL5_x86/seam/src/test/ftest/src/main/org/jboss/seam/example/common/test/selenium/SeleniumDateSelector.java:181: cannot find symbol
[javac] symbol : method getInstance()
[javac] location: class java.text.DateFormatSymbols
[javac] final List<String> months = Arrays.asList(DateFormatSymbols.getInstance().getMonths());
[javac] ^
[javac] 1 error
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 11 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-4401) Component locale-config (org.jboss.seam.international.localeConfig) does not set the locale things in JSF context if JSF is not initialized before Seam
by Denis Forveille (JIRA)
Component locale-config (org.jboss.seam.international.localeConfig) does not set the locale things in JSF context if JSF is not initialized before Seam
-------------------------------------------------------------------------------------------------------------------------------------------------------
Key: JBSEAM-4401
URL: https://jira.jboss.org/jira/browse/JBSEAM-4401
Project: Seam
Issue Type: Bug
Affects Versions: 2.2.0.GA, 2.2.1.CR1
Environment: WebSphere v7.0.0.5 (That is bundled with JSF-RI 1.2_07+)
Reporter: Denis Forveille
Using the localeConfig component by declaring <international:locale-config default-locale="fr" supported-locales="fr en" /> in component.xml does not work as-is.
It works if JSF is initialized BEFORE Seam by adding the lines
<listener><listener-class>com.sun.faces.config.ConfigureListener</listener-class></listener>
before
<listener><listener-class>org.jboss.seam.servlet.SeamListener</listener-class></listener>
in web.xml
If the JSF listener is not there, JSF is not initialized when Seam bootstraps its application scope components, and so the faces application context is not available
In the case of the localeConfig component, line 136 of org.jboss.seam.international.LocaleConfig throws an IllegalStateException that is silently swallowed (!) when JSF is not initialized
Doing so the the default locales and supported locales are not defined to JSF thanks to the test in line 58.
IMHO, at a minimum this should be stated in the doc that the component works only if JSF is initialized before seam, or somehting should be changed in the code to set the JSF locale things when JSF application context is initialized
org.jboss.seam.international.LocaleConfig lines around 136:
private Application getApplication()
{
try
{
ApplicationFactory factory = (ApplicationFactory) FactoryFinder
.getFactory(FactoryFinder.APPLICATION_FACTORY);
return factory.getApplication();
}
catch (IllegalStateException e)
{
// just in case, for units and the like
// if we can't do it, it just wan't meant to be
return null;
}
}
around line 58:
@Create
public void initLocaleConfig()
{
Application application = getApplication();
if (application == null)
{
return;
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 11 months