[Design the new POJO MicroContainer] - Why this semantic change?
by adrian@jboss.org
| @@ -648,10 +648,6 @@
| */
| protected void doInstall(Deployer deployer, DeploymentContext context, boolean doComponents) throws Throwable
| {
| - // Take a copy of the components so we don't start looping on newly added components
| - // in the component deployers
| - List<DeploymentContext> components = new ArrayList<DeploymentContext>(context.getComponents());
| -
| DeploymentUnit unit = context.getDeploymentUnit();
| if (isRelevant(deployer, unit, context.isTopLevel(), context.isComponent()))
| deployer.deploy(unit);
| @@ -660,9 +656,13 @@
|
| if (doComponents)
| {
| - try
| + List<DeploymentContext> currentComponents = context.getComponents();
| + if (currentComponents != null && currentComponents.isEmpty() == false)
|
The code is even commented to say that it is retrieving the components
*before* it invokes the deployer on the main context
anonymous wrote :
| Take a copy of the components so we don't start looping on newly added components
|
but you've changed it to do the opposite.
In practice, the condition doesn't occur, because none of the
current deployers that create components, accept components,
but if/when such a deployer is created, it will loop after this change.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058711#4058711
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058711
17 years
[Design of JBoss Labs] - Compiling JBossPortal - problem with Eclipse
by wojsal
I have a problem with compiling JBossPortal in Eclipse.
[echo] build.classes=C:\programy\eclipse\workspace\jboss-portal-2.0-commerce\core/output/classes
[execmodules] 2007-06-28 11:22:49 xdoclet.XDocletMain start
[execmodules] INFO: Running
[execmodules] null
[execmodules] ParameterImpl instances: 20
[execmodules] MethodImpl instances: 4896
[execmodules] ConstructorImpl instances: 599
[execmodules] SimpleNode instances: 0
[execmodules] SourceClass instances: 864
[execmodules] XDoc instances: 364
[execmodules] DefaultXTag instances: 765
[execmodules] BinaryClass instances: 244
[execmodules] UnknownClass instances: 420
[execmodules] Total memory: 63
[execmodules] Free memory: 0
[execmodules] Try to increase heap size. Can be done by defining ANT_OPTS=-Xmx640m
[execmodules] See the JDK tooldocs.
[execmodules] INFO: Some classes refer to other classes that were not found among the sources or on the classpath.
[execmodules] (Perhaps the referred class doesn't exist? Hasn't been generated yet?)
[execmodules] The referring classes do not import any fully qualified classes matching these classes.
[execmodules] However, since no packages are imported, xjavadoc has assumed that the referred classes
[execmodules] belong to the same package as the referring class. The classes are:
[execmodules] C:\programy\eclipse\workspace\jboss-portal-2.0-commerce\core\src\main\org\jboss\portal\core\portlet\cms\admin\security\AdminCMSModelContentProvider.java --> Job qualified to org.jboss.portal.core.portlet.cms.admin.security.Job
[execmodules] C:\programy\eclipse\workspace\jboss-portal-2.0-commerce\core\src\main\org\jboss\portal\core\portlet\itera\WebDAVHelpers.java --> Job qualified to org.jboss.portal.core.portlet.itera.Job
[execmodules] C:\programy\eclipse\workspace\jboss-portal-2.0-commerce\core\src\main\org\jboss\portal\core\portlet\itera\portlets\b2cuser\B2CuserPortlet.java --> Job qualified to org.jboss.portal.core.portlet.itera.portlets.b2cuser.Job
[execmodules] C:\programy\eclipse\workspace\jboss-portal-2.0-commerce\core\src\main\org\jboss\portal\core\portlet\itera\portlets\content\ContentPortlet.java --> Job qualified to org.jboss.portal.core.portlet.itera.portlets.content.Job
BUILD FAILED
C:\programy\eclipse\workspace\jboss-portal-2.0-commerce\core\build.xml:141: null
Total time: 28 seconds
I set environmet for ant, in Eclipse:
ANT_OPTS=-Xmx640m
ANT_HOME=...... (directory with ant plugins for Eclipse)
The compiling JBossPortal without Eclipse (with: ant build.xml deploy) is OK.
Why i can't compile JBossPortal over Eclipse?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058641#4058641
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058641
17 years