[JBoss JIRA] (FORGE-2299) No such child when doing a --targetClass
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-2299?page=com.atlassian.jira.plugin... ]
George Gastaldi updated FORGE-2299:
-----------------------------------
Priority: Critical (was: Major)
> No such child when doing a --targetClass
> ----------------------------------------
>
> Key: FORGE-2299
> URL: https://issues.jboss.org/browse/FORGE-2299
> Project: Forge
> Issue Type: Bug
> Components: UI - API
> Affects Versions: 2.15.2.Final
> Reporter: Antonio Goncalves
> Assignee: George Gastaldi
> Priority: Critical
> Fix For: 2.x Future
>
>
> The {{JavaAddAnnotationCommandImpl}} command adds an annotation to an existing class :
> {code}
> @FacetConstraint(JavaSourceFacet.class)
> public class JavaAddAnnotationCommandImpl extends AbstractProjectCommand implements JavaAddAnnotationCommand
> {
> @Inject
> @WithAttributes(label = "Target Class", description = "The class where the annotation will be added", required = true, type = InputType.DROPDOWN)
> private UISelectOne<JavaResource> targetClass;
> {code}
> But when the parameter {{targetClass}} is used, there is a {{no such child}}
> {code}
> [bin]$ project-new --named test
> ***SUCCESS*** Project named 'test' has been created.
> [test]$ java-new-class --named MyClass
> ***SUCCESS*** Class org.test.MyClass was created
> [MyClass.java]$ java-add-annotation --annotation java.lang.annotation.Documented --targetClass org.test.MyClass
> Exception when parsing/running: java-add-annotation --annotation java.lang.annotation.Documented --targetClass org.test.MyClass , no such child: org.test.MyClass
> ***INFO*** (type "export VERBOSE=true" to enable stack traces)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 10 months
[JBoss JIRA] (FORGE-2299) No such child when doing a --targetClass
by Antonio Goncalves (JIRA)
[ https://issues.jboss.org/browse/FORGE-2299?page=com.atlassian.jira.plugin... ]
Antonio Goncalves reassigned FORGE-2299:
----------------------------------------
Assignee: George Gastaldi
> No such child when doing a --targetClass
> ----------------------------------------
>
> Key: FORGE-2299
> URL: https://issues.jboss.org/browse/FORGE-2299
> Project: Forge
> Issue Type: Bug
> Components: UI - API
> Affects Versions: 2.15.2.Final
> Reporter: Antonio Goncalves
> Assignee: George Gastaldi
> Fix For: 2.x Future
>
>
> The {{JavaAddAnnotationCommandImpl}} command adds an annotation to an existing class :
> {code}
> @FacetConstraint(JavaSourceFacet.class)
> public class JavaAddAnnotationCommandImpl extends AbstractProjectCommand implements JavaAddAnnotationCommand
> {
> @Inject
> @WithAttributes(label = "Target Class", description = "The class where the annotation will be added", required = true, type = InputType.DROPDOWN)
> private UISelectOne<JavaResource> targetClass;
> {code}
> But when the parameter {{targetClass}} is used, there is a {{no such child}}
> {code}
> [bin]$ project-new --named test
> ***SUCCESS*** Project named 'test' has been created.
> [test]$ java-new-class --named MyClass
> ***SUCCESS*** Class org.test.MyClass was created
> [MyClass.java]$ java-add-annotation --annotation java.lang.annotation.Documented --targetClass org.test.MyClass
> Exception when parsing/running: java-add-annotation --annotation java.lang.annotation.Documented --targetClass org.test.MyClass , no such child: org.test.MyClass
> ***INFO*** (type "export VERBOSE=true" to enable stack traces)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 10 months
[JBoss JIRA] (FORGE-2299) No such child when doing a --targetClass
by Antonio Goncalves (JIRA)
Antonio Goncalves created FORGE-2299:
----------------------------------------
Summary: No such child when doing a --targetClass
Key: FORGE-2299
URL: https://issues.jboss.org/browse/FORGE-2299
Project: Forge
Issue Type: Bug
Components: UI - API
Affects Versions: 2.15.2.Final
Reporter: Antonio Goncalves
Fix For: 2.x Future
The {{JavaAddAnnotationCommandImpl}} command adds an annotation to an existing class :
{code}
@FacetConstraint(JavaSourceFacet.class)
public class JavaAddAnnotationCommandImpl extends AbstractProjectCommand implements JavaAddAnnotationCommand
{
@Inject
@WithAttributes(label = "Target Class", description = "The class where the annotation will be added", required = true, type = InputType.DROPDOWN)
private UISelectOne<JavaResource> targetClass;
{code}
But when the parameter {{targetClass}} is used, there is a {{no such child}}
{code}
[bin]$ project-new --named test
***SUCCESS*** Project named 'test' has been created.
[test]$ java-new-class --named MyClass
***SUCCESS*** Class org.test.MyClass was created
[MyClass.java]$ java-add-annotation --annotation java.lang.annotation.Documented --targetClass org.test.MyClass
Exception when parsing/running: java-add-annotation --annotation java.lang.annotation.Documented --targetClass org.test.MyClass , no such child: org.test.MyClass
***INFO*** (type "export VERBOSE=true" to enable stack traces)
{code}
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 10 months
[JBoss JIRA] (FORGE-2298) AddonGitBuildAndInstallCommand does not use the Forge version
by George Gastaldi (JIRA)
George Gastaldi created FORGE-2298:
--------------------------------------
Summary: AddonGitBuildAndInstallCommand does not use the Forge version
Key: FORGE-2298
URL: https://issues.jboss.org/browse/FORGE-2298
Project: Forge
Issue Type: Bug
Components: Addon Development
Affects Versions: 2.15.2.Final
Reporter: George Gastaldi
Assignee: George Gastaldi
Fix For: 2.15.3.Final
As of Forge 2.15.x, Furnace is no longer the same version as Forge, therefore, the {{addon-install-from-git}} command should pass the {{version.forge}} property together with {{version.furnace}}
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 10 months
[JBoss JIRA] (FURNACE-35) PostStartup event is not fired for every deployed addon
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FURNACE-35?page=com.atlassian.jira.plugin... ]
George Gastaldi commented on FURNACE-35:
----------------------------------------
The test passes when using the simple container, so it all points to a bug in the CDI container:
{code:java}
/*
* Copyright 2013 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Eclipse Public License version 1.0, available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package test.org.jboss.forge.furnace.events;
import java.util.ArrayList;
import java.util.List;
import java.util.Map.Entry;
import javax.inject.Inject;
import javax.xml.xpath.XPathFactory;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.forge.arquillian.AddonDeployment;
import org.jboss.forge.arquillian.AddonDeployments;
import org.jboss.forge.arquillian.archive.AddonArchive;
import org.jboss.forge.furnace.repositories.AddonDependencyEntry;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
/**
* @author Matej Briškár
* @author <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a>
*/
@RunWith(Arquillian.class)
public class ContainerLifecycleEventsTest
{
@Deployment(order = 3)
@AddonDeployments({
@AddonDeployment(name = "org.jboss.forge.furnace.container:cdi"),
@AddonDeployment(name = "org.jboss.forge.furnace.container:simple", version = "2.15.4-SNAPSHOT")
})
public static AddonArchive getDeployment1()
{
AddonArchive archive = ShrinkWrap.create(AddonArchive.class)
.addAsAddonDependencies(
AddonDependencyEntry.create("org.jboss.forge.furnace.container:cdi"),
AddonDependencyEntry.create("dep2"),
AddonDependencyEntry.create("dep3"),
AddonDependencyEntry.create("dep4")
).addBeansXML();
return archive;
}
@Deployment(name = "dep2,1", testable = false, order = 2)
public static AddonArchive getDeploymentDep2()
{
AddonArchive archive = ShrinkWrap.create(AddonArchive.class)
.addAsAddonDependencies(
AddonDependencyEntry.create("org.jboss.forge.furnace.container:simple", "2.15.4-SNAPSHOT")
)
.addBeansXML();
return archive;
}
@Deployment(name = "dep3,1", testable = false, order = 1)
public static AddonArchive getDeploymentDep3()
{
AddonArchive archive = ShrinkWrap.create(AddonArchive.class)
.addAsAddonDependencies(
AddonDependencyEntry.create("org.jboss.forge.furnace.container:simple", "2.15.4-SNAPSHOT")
)
.addBeansXML();
return archive;
}
@Deployment(name = "dep4,1", testable = false, order = 0)
public static AddonArchive getDeploymentDep4()
{
AddonArchive archive = ShrinkWrap.create(AddonArchive.class)
.addClass(ContainerLifecycleEventObserver.class)
.addAsAddonDependencies(
AddonDependencyEntry.create("org.jboss.forge.furnace.container:cdi")
)
.addBeansXML();
return archive;
}
@Inject
private ContainerLifecycleEventObserver observer;
@Test
public void testContainerStartup()
{
Assert.assertTrue(observer.isObservedPerform());
Assert.assertTrue("PostStartup should be called for each installed addon. Only "
+ observer.getPostStartupMap().size() + " calls were registered.",
observer.getPostStartupMap().size() == 4);
List<String> messages = new ArrayList<>();
for (Entry<String, Integer> entry : observer.getPostStartupMap().entrySet())
{
if (entry.getValue() > 1)
{
messages.add("Multiple PostStartup events for addon: " + entry.getKey() + ": " + entry.getValue());
}
}
if (!messages.isEmpty())
Assert.fail(messages.toString());
}
}
{code}
> PostStartup event is not fired for every deployed addon
> -------------------------------------------------------
>
> Key: FURNACE-35
> URL: https://issues.jboss.org/browse/FURNACE-35
> Project: Forge: Furnace
> Issue Type: Bug
> Components: Container - CDI, Runtime
> Affects Versions: 2.15.3.Final
> Reporter: Matej Briskar
> Fix For: 2.x Future
>
>
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 10 months
[JBoss JIRA] (FORGE-2297) Support newer versions of Gradle
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-2297?page=com.atlassian.jira.plugin... ]
George Gastaldi updated FORGE-2297:
-----------------------------------
Fix Version/s: 2.x Future
> Support newer versions of Gradle
> --------------------------------
>
> Key: FORGE-2297
> URL: https://issues.jboss.org/browse/FORGE-2297
> Project: Forge
> Issue Type: Bug
> Components: Addon Development, Build Tools - Gradle
> Reporter: Rick Suggs
> Fix For: 2.x Future
>
>
> Hello,
> I've found some great potential with this tool, but I am wondering if there is any plan to support newer versions of Gradle?
> On MacOSX I set my GRADLE_HOME env variable to an installation of gradle 2.3, and after following the sequence to create a new project, several exceptions were thrown. The same exceptions did not occur with the default installation of Gradle that comes with Forge.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 10 months