[JBoss JIRA] (FORGE-486) Scaffolding an entity with an enum fails
by Richard Kennard (JIRA)
[ https://issues.jboss.org/browse/FORGE-486?page=com.atlassian.jira.plugin.... ]
Richard Kennard commented on FORGE-486:
---------------------------------------
There's a unit test for this. Take a look at org.jboss.forge.scaffold.faces.FacesScaffoldTest.testGenerateEntityWithEnum()
I believe the syntax is something like: java new-enum-type
> Scaffolding an entity with an enum fails
> ----------------------------------------
>
> Key: FORGE-486
> URL: https://issues.jboss.org/browse/FORGE-486
> Project: Forge
> Issue Type: Bug
> Components: Scaffold
> Affects Versions: 1.0.0.Final
> Reporter: Pete Muir
> Priority: Critical
> Fix For: 1.0.1.Final
>
>
> for
> {code}
> @Entity
> @JsonIgnoreProperties("content")
> public class MediaItem implements Serializable {
> private static final long serialVersionUID = -3190368407410663590L;
> @Id
> @GeneratedValue(strategy=IDENTITY)
> private Long id;
> @Enumerated(STRING)
> private MediaType mediaType;
>
> @URL
> private String url;
> public Long getId() {
> return id;
> }
> public MediaType getMediaType() {
> return mediaType;
> }
>
> public void setMediaType(MediaType mediaType) {
> this.mediaType = mediaType;
> }
> public String getUrl() {
> return url;
> }
>
> public void setUrl(String url) {
> this.url = url;
> }
> @Override
> public boolean equals(Object o) {
> if (this == o) return true;
> if (o == null || getClass() != o.getClass()) return false;
> MediaItem mediaItem = (MediaItem) o;
> if (id != null ? !id.equals(mediaItem.id) : mediaItem.id != null) return false;
> return true;
> }
> @Override
> public int hashCode() {
> return id != null ? id.hashCode() : 0;
> }
> }
> {code}
> {code}
> public enum MediaType {
>
> IMAGE("Image", true);
>
> private MediaType(String description, boolean cacheable) {
> this.description = description;
> this.cacheable = cacheable;
> }
> private final String description;
> private final boolean cacheable;
>
> public String getDescription() {
> return description;
> }
>
> public boolean isCacheable() {
> return cacheable;
> }
>
> }
> {code}
> I get
> {code}
> [ticket-monster] ticket-monster-1 $ scaffold from-entity org.jboss.jdf.example.ticketmonster.model.MediaItem;
> Wrote /Users/pmuir/workspace/ticket-monster-1/src/main/java/org/jboss/jdf/examples/view/MediaItemBean.java
> ***ERROR*** [scaffold from-entity] Error generating default scaffolding: java.lang.ClassCastException: org.jboss.forge.parser.java.impl.JavaEnumImpl cannot be cast to org.jboss.forge.parser.java.MethodHolder
> org.jboss.forge.shell.exceptions.CommandExecutionException: Error generating default scaffolding: java.lang.ClassCastException: org.jboss.forge.parser.java.impl.JavaEnumImpl cannot be cast to org.jboss.forge.parser.java.MethodHolder
> at org.jboss.forge.shell.command.Execution.perform(Execution.java:153)
> at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:125)
> at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:63)
> at org.jboss.forge.shell.ShellImpl$ExecutorThread.run(ShellImpl.java:829)
> at org.jboss.forge.shell.ShellImpl.execute(ShellImpl.java:852)
> at org.jboss.forge.shell.ShellImpl.doShell(ShellImpl.java:642)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)
> at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125)
> at org.jboss.forge.shell.ShellImpl$Proxy$_$$_WeldClientProxy.doShell(ShellImpl$Proxy$_$$_WeldClientProxy.java)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
> at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
> at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
> at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
> at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)
> at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)
> at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)
> at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:282)
> at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)
> at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)
> at org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:635)
> at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:622)
> at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:616)
> at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:120)
> at java.lang.Thread.run(Thread.java:680)
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.GeneratedMethodAccessor59.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.jboss.forge.shell.command.Execution.perform(Execution.java:149)
> ... 31 more
> Caused by: java.lang.RuntimeException: Error generating default scaffolding: java.lang.ClassCastException: org.jboss.forge.parser.java.impl.JavaEnumImpl cannot be cast to org.jboss.forge.parser.java.MethodHolder
> at org.jboss.forge.scaffold.faces.FacesScaffold.generateFromEntity(FacesScaffold.java:339)
> at org.jboss.forge.scaffold.plugins.ScaffoldPlugin.generateFromEntity(ScaffoldPlugin.java:174)
> ... 35 more
> Caused by: org.metawidget.inspector.iface.InspectorException: java.lang.ClassCastException: org.jboss.forge.parser.java.impl.JavaEnumImpl cannot be cast to org.jboss.forge.parser.java.MethodHolder
> at org.metawidget.inspector.iface.InspectorException.newException(InspectorException.java:51)
> at org.jboss.forge.scaffold.faces.metawidget.inspector.propertystyle.ForgePropertyStyle.inspectProperties(ForgePropertyStyle.java:159)
> at org.metawidget.inspector.impl.propertystyle.BasePropertyStyle.getUncachedTraits(BasePropertyStyle.java:172)
> at org.metawidget.inspector.impl.BaseTraitStyle.getTraits(BaseTraitStyle.java:126)
> at org.metawidget.inspector.impl.propertystyle.BasePropertyStyle.getProperties(BasePropertyStyle.java:54)
> at org.metawidget.inspector.impl.BaseObjectInspector.getProperties(BaseObjectInspector.java:499)
> at org.metawidget.inspector.impl.BaseObjectInspector.inspectTraits(BaseObjectInspector.java:341)
> at org.metawidget.inspector.impl.BaseObjectInspector.inspectAsDom(BaseObjectInspector.java:243)
> at org.metawidget.inspector.impl.BaseObjectInspector.inspectAsDom(BaseObjectInspector.java:69)
> at org.metawidget.inspector.composite.CompositeInspector.runInspector(CompositeInspector.java:241)
> at org.metawidget.inspector.composite.CompositeInspector.runInspectors(CompositeInspector.java:220)
> at org.metawidget.inspector.composite.CompositeInspector.inspectAsDom(CompositeInspector.java:167)
> at org.metawidget.inspector.composite.CompositeInspector.inspectAsDom(CompositeInspector.java:151)
> at org.metawidget.inspector.composite.CompositeInspector.inspectAsDom(CompositeInspector.java:53)
> at org.metawidget.pipeline.base.BasePipeline.inspectAsDom(BasePipeline.java:344)
> at org.metawidget.statically.StaticMetawidget.inspect(StaticMetawidget.java:301)
> at org.metawidget.statically.StaticMetawidget.write(StaticMetawidget.java:247)
> at org.metawidget.statically.StaticMetawidget.write(StaticMetawidget.java:233)
> at org.metawidget.statically.BaseStaticWidget.write(BaseStaticWidget.java:126)
> at org.metawidget.statically.BaseStaticXmlWidget.write(BaseStaticXmlWidget.java:168)
> at org.metawidget.statically.BaseStaticWidget.write(BaseStaticWidget.java:126)
> at org.metawidget.statically.StaticMetawidget.write(StaticMetawidget.java:255)
> at org.jboss.forge.scaffold.faces.FacesScaffold.writeEntityMetawidget(FacesScaffold.java:777)
> at org.jboss.forge.scaffold.faces.FacesScaffold.generateFromEntity(FacesScaffold.java:292)
> ... 36 more
> Caused by: java.lang.ClassCastException: org.jboss.forge.parser.java.impl.JavaEnumImpl cannot be cast to org.jboss.forge.parser.java.MethodHolder
> at org.jboss.forge.scaffold.faces.metawidget.inspector.propertystyle.ForgePropertyStyle.inspectProperties(ForgePropertyStyle.java:152)
> ... 58 more
> [ticket-monster] ticket-monster-1 $
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 4 months
[JBoss JIRA] (FORGE-486) Scaffolding an entity with an enum fails
by Robb Greathouse (JIRA)
[ https://issues.jboss.org/browse/FORGE-486?page=com.atlassian.jira.plugin.... ]
Robb Greathouse commented on FORGE-486:
---------------------------------------
What is the command to create a class of type enum. For example the TicketMonster MediaType the is
public enum MediaType{
private String description;
}
> Scaffolding an entity with an enum fails
> ----------------------------------------
>
> Key: FORGE-486
> URL: https://issues.jboss.org/browse/FORGE-486
> Project: Forge
> Issue Type: Bug
> Components: Scaffold
> Affects Versions: 1.0.0.Final
> Reporter: Pete Muir
> Priority: Critical
> Fix For: 1.0.1.Final
>
>
> for
> {code}
> @Entity
> @JsonIgnoreProperties("content")
> public class MediaItem implements Serializable {
> private static final long serialVersionUID = -3190368407410663590L;
> @Id
> @GeneratedValue(strategy=IDENTITY)
> private Long id;
> @Enumerated(STRING)
> private MediaType mediaType;
>
> @URL
> private String url;
> public Long getId() {
> return id;
> }
> public MediaType getMediaType() {
> return mediaType;
> }
>
> public void setMediaType(MediaType mediaType) {
> this.mediaType = mediaType;
> }
> public String getUrl() {
> return url;
> }
>
> public void setUrl(String url) {
> this.url = url;
> }
> @Override
> public boolean equals(Object o) {
> if (this == o) return true;
> if (o == null || getClass() != o.getClass()) return false;
> MediaItem mediaItem = (MediaItem) o;
> if (id != null ? !id.equals(mediaItem.id) : mediaItem.id != null) return false;
> return true;
> }
> @Override
> public int hashCode() {
> return id != null ? id.hashCode() : 0;
> }
> }
> {code}
> {code}
> public enum MediaType {
>
> IMAGE("Image", true);
>
> private MediaType(String description, boolean cacheable) {
> this.description = description;
> this.cacheable = cacheable;
> }
> private final String description;
> private final boolean cacheable;
>
> public String getDescription() {
> return description;
> }
>
> public boolean isCacheable() {
> return cacheable;
> }
>
> }
> {code}
> I get
> {code}
> [ticket-monster] ticket-monster-1 $ scaffold from-entity org.jboss.jdf.example.ticketmonster.model.MediaItem;
> Wrote /Users/pmuir/workspace/ticket-monster-1/src/main/java/org/jboss/jdf/examples/view/MediaItemBean.java
> ***ERROR*** [scaffold from-entity] Error generating default scaffolding: java.lang.ClassCastException: org.jboss.forge.parser.java.impl.JavaEnumImpl cannot be cast to org.jboss.forge.parser.java.MethodHolder
> org.jboss.forge.shell.exceptions.CommandExecutionException: Error generating default scaffolding: java.lang.ClassCastException: org.jboss.forge.parser.java.impl.JavaEnumImpl cannot be cast to org.jboss.forge.parser.java.MethodHolder
> at org.jboss.forge.shell.command.Execution.perform(Execution.java:153)
> at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:125)
> at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:63)
> at org.jboss.forge.shell.ShellImpl$ExecutorThread.run(ShellImpl.java:829)
> at org.jboss.forge.shell.ShellImpl.execute(ShellImpl.java:852)
> at org.jboss.forge.shell.ShellImpl.doShell(ShellImpl.java:642)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)
> at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125)
> at org.jboss.forge.shell.ShellImpl$Proxy$_$$_WeldClientProxy.doShell(ShellImpl$Proxy$_$$_WeldClientProxy.java)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
> at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
> at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
> at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
> at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)
> at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)
> at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)
> at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:282)
> at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)
> at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)
> at org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:635)
> at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:622)
> at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:616)
> at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:120)
> at java.lang.Thread.run(Thread.java:680)
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.GeneratedMethodAccessor59.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.jboss.forge.shell.command.Execution.perform(Execution.java:149)
> ... 31 more
> Caused by: java.lang.RuntimeException: Error generating default scaffolding: java.lang.ClassCastException: org.jboss.forge.parser.java.impl.JavaEnumImpl cannot be cast to org.jboss.forge.parser.java.MethodHolder
> at org.jboss.forge.scaffold.faces.FacesScaffold.generateFromEntity(FacesScaffold.java:339)
> at org.jboss.forge.scaffold.plugins.ScaffoldPlugin.generateFromEntity(ScaffoldPlugin.java:174)
> ... 35 more
> Caused by: org.metawidget.inspector.iface.InspectorException: java.lang.ClassCastException: org.jboss.forge.parser.java.impl.JavaEnumImpl cannot be cast to org.jboss.forge.parser.java.MethodHolder
> at org.metawidget.inspector.iface.InspectorException.newException(InspectorException.java:51)
> at org.jboss.forge.scaffold.faces.metawidget.inspector.propertystyle.ForgePropertyStyle.inspectProperties(ForgePropertyStyle.java:159)
> at org.metawidget.inspector.impl.propertystyle.BasePropertyStyle.getUncachedTraits(BasePropertyStyle.java:172)
> at org.metawidget.inspector.impl.BaseTraitStyle.getTraits(BaseTraitStyle.java:126)
> at org.metawidget.inspector.impl.propertystyle.BasePropertyStyle.getProperties(BasePropertyStyle.java:54)
> at org.metawidget.inspector.impl.BaseObjectInspector.getProperties(BaseObjectInspector.java:499)
> at org.metawidget.inspector.impl.BaseObjectInspector.inspectTraits(BaseObjectInspector.java:341)
> at org.metawidget.inspector.impl.BaseObjectInspector.inspectAsDom(BaseObjectInspector.java:243)
> at org.metawidget.inspector.impl.BaseObjectInspector.inspectAsDom(BaseObjectInspector.java:69)
> at org.metawidget.inspector.composite.CompositeInspector.runInspector(CompositeInspector.java:241)
> at org.metawidget.inspector.composite.CompositeInspector.runInspectors(CompositeInspector.java:220)
> at org.metawidget.inspector.composite.CompositeInspector.inspectAsDom(CompositeInspector.java:167)
> at org.metawidget.inspector.composite.CompositeInspector.inspectAsDom(CompositeInspector.java:151)
> at org.metawidget.inspector.composite.CompositeInspector.inspectAsDom(CompositeInspector.java:53)
> at org.metawidget.pipeline.base.BasePipeline.inspectAsDom(BasePipeline.java:344)
> at org.metawidget.statically.StaticMetawidget.inspect(StaticMetawidget.java:301)
> at org.metawidget.statically.StaticMetawidget.write(StaticMetawidget.java:247)
> at org.metawidget.statically.StaticMetawidget.write(StaticMetawidget.java:233)
> at org.metawidget.statically.BaseStaticWidget.write(BaseStaticWidget.java:126)
> at org.metawidget.statically.BaseStaticXmlWidget.write(BaseStaticXmlWidget.java:168)
> at org.metawidget.statically.BaseStaticWidget.write(BaseStaticWidget.java:126)
> at org.metawidget.statically.StaticMetawidget.write(StaticMetawidget.java:255)
> at org.jboss.forge.scaffold.faces.FacesScaffold.writeEntityMetawidget(FacesScaffold.java:777)
> at org.jboss.forge.scaffold.faces.FacesScaffold.generateFromEntity(FacesScaffold.java:292)
> ... 36 more
> Caused by: java.lang.ClassCastException: org.jboss.forge.parser.java.impl.JavaEnumImpl cannot be cast to org.jboss.forge.parser.java.MethodHolder
> at org.jboss.forge.scaffold.faces.metawidget.inspector.propertystyle.ForgePropertyStyle.inspectProperties(ForgePropertyStyle.java:152)
> ... 58 more
> [ticket-monster] ticket-monster-1 $
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 4 months
[JBoss JIRA] (FORGE-727) Starting forge with debug flag results in an error
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-727?page=com.atlassian.jira.plugin.... ]
George Gastaldi updated FORGE-727:
----------------------------------
Status: Closed (was: Pull Request Sent)
Fix Version/s: 2.0.0.Alpha1
Resolution: Done
Fixed. Thanks Vineet !
> Starting forge with debug flag results in an error
> --------------------------------------------------
>
> Key: FORGE-727
> URL: https://issues.jboss.org/browse/FORGE-727
> Project: Forge
> Issue Type: Bug
> Components: Init Scripts
> Affects Versions: 1.1.0.Final, 1.1.3.Final
> Environment: Linux Mint 13 Maya
> Reporter: Vineet Reynolds
> Assignee: Vineet Reynolds
> Fix For: 1.1.4.Final, 2.0.0.Alpha1
>
>
> The following error is reported when starting forge with the {{--debug}} flag:
> {code}
> vineet@Vineet-dv6-Notebook-PC ~ $ forge --debug
> /opt/forge-distribution-1.1.0.Final/bin/forge: 30: [: unexpected operator
> /opt/forge-distribution-1.1.0.Final/bin/forge: 34: [: --debug: unexpected operator
> /opt/forge-distribution-1.1.0.Final/bin/forge: 38: [: --debug: unexpected operator
> {code}
> This looks like a POSIX compliance issue. The dash shell is POSIX compliant, but not bash. But I could be wrong.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 4 months
[JBoss JIRA] (FORGE-727) Starting forge with debug flag results in an error
by Vineet Reynolds (JIRA)
[ https://issues.jboss.org/browse/FORGE-727?page=com.atlassian.jira.plugin.... ]
Vineet Reynolds reassigned FORGE-727:
-------------------------------------
Assignee: Vineet Reynolds
> Starting forge with debug flag results in an error
> --------------------------------------------------
>
> Key: FORGE-727
> URL: https://issues.jboss.org/browse/FORGE-727
> Project: Forge
> Issue Type: Bug
> Components: Init Scripts
> Affects Versions: 1.1.0.Final, 1.1.3.Final
> Environment: Linux Mint 13 Maya
> Reporter: Vineet Reynolds
> Assignee: Vineet Reynolds
> Fix For: 1.1.4.Final
>
>
> The following error is reported when starting forge with the {{--debug}} flag:
> {code}
> vineet@Vineet-dv6-Notebook-PC ~ $ forge --debug
> /opt/forge-distribution-1.1.0.Final/bin/forge: 30: [: unexpected operator
> /opt/forge-distribution-1.1.0.Final/bin/forge: 34: [: --debug: unexpected operator
> /opt/forge-distribution-1.1.0.Final/bin/forge: 38: [: --debug: unexpected operator
> {code}
> This looks like a POSIX compliance issue. The dash shell is POSIX compliant, but not bash. But I could be wrong.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 4 months
[JBoss JIRA] (FORGE-727) Starting forge with debug flag results in an error
by Vineet Reynolds (JIRA)
[ https://issues.jboss.org/browse/FORGE-727?page=com.atlassian.jira.plugin.... ]
Vineet Reynolds updated FORGE-727:
----------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request: https://github.com/forge/core/pull/247
Modified the shell script to use "=" instead of "==" (which is a bashism). Verified by executing {{forge --debug}}
> Starting forge with debug flag results in an error
> --------------------------------------------------
>
> Key: FORGE-727
> URL: https://issues.jboss.org/browse/FORGE-727
> Project: Forge
> Issue Type: Bug
> Components: Init Scripts
> Affects Versions: 1.1.0.Final, 1.1.3.Final
> Environment: Linux Mint 13 Maya
> Reporter: Vineet Reynolds
> Fix For: 1.1.4.Final
>
>
> The following error is reported when starting forge with the {{--debug}} flag:
> {code}
> vineet@Vineet-dv6-Notebook-PC ~ $ forge --debug
> /opt/forge-distribution-1.1.0.Final/bin/forge: 30: [: unexpected operator
> /opt/forge-distribution-1.1.0.Final/bin/forge: 34: [: --debug: unexpected operator
> /opt/forge-distribution-1.1.0.Final/bin/forge: 38: [: --debug: unexpected operator
> {code}
> This looks like a POSIX compliance issue. The dash shell is POSIX compliant, but not bash. But I could be wrong.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 4 months
[JBoss JIRA] (FORGE-727) Starting forge with debug flag results in an error
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-727?page=com.atlassian.jira.plugin.... ]
George Gastaldi updated FORGE-727:
----------------------------------
Fix Version/s: 1.1.4.Final
> Starting forge with debug flag results in an error
> --------------------------------------------------
>
> Key: FORGE-727
> URL: https://issues.jboss.org/browse/FORGE-727
> Project: Forge
> Issue Type: Bug
> Affects Versions: 1.1.0.Final, 1.1.3.Final
> Environment: Linux Mint 13 Maya
> Reporter: Vineet Reynolds
> Fix For: 1.1.4.Final
>
>
> The following error is reported when starting forge with the {{--debug}} flag:
> {code}
> vineet@Vineet-dv6-Notebook-PC ~ $ forge --debug
> /opt/forge-distribution-1.1.0.Final/bin/forge: 30: [: unexpected operator
> /opt/forge-distribution-1.1.0.Final/bin/forge: 34: [: --debug: unexpected operator
> /opt/forge-distribution-1.1.0.Final/bin/forge: 38: [: --debug: unexpected operator
> {code}
> This looks like a POSIX compliance issue. The dash shell is POSIX compliant, but not bash. But I could be wrong.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 4 months
[JBoss JIRA] (FORGE-727) Starting forge with debug flag results in an error
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-727?page=com.atlassian.jira.plugin.... ]
George Gastaldi updated FORGE-727:
----------------------------------
Component/s: Init Scripts
> Starting forge with debug flag results in an error
> --------------------------------------------------
>
> Key: FORGE-727
> URL: https://issues.jboss.org/browse/FORGE-727
> Project: Forge
> Issue Type: Bug
> Components: Init Scripts
> Affects Versions: 1.1.0.Final, 1.1.3.Final
> Environment: Linux Mint 13 Maya
> Reporter: Vineet Reynolds
> Fix For: 1.1.4.Final
>
>
> The following error is reported when starting forge with the {{--debug}} flag:
> {code}
> vineet@Vineet-dv6-Notebook-PC ~ $ forge --debug
> /opt/forge-distribution-1.1.0.Final/bin/forge: 30: [: unexpected operator
> /opt/forge-distribution-1.1.0.Final/bin/forge: 34: [: --debug: unexpected operator
> /opt/forge-distribution-1.1.0.Final/bin/forge: 38: [: --debug: unexpected operator
> {code}
> This looks like a POSIX compliance issue. The dash shell is POSIX compliant, but not bash. But I could be wrong.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 4 months
[JBoss JIRA] (FORGE-727) Starting forge with debug flag results in an error
by Vineet Reynolds (JIRA)
Vineet Reynolds created FORGE-727:
-------------------------------------
Summary: Starting forge with debug flag results in an error
Key: FORGE-727
URL: https://issues.jboss.org/browse/FORGE-727
Project: Forge
Issue Type: Bug
Affects Versions: 1.1.3.Final, 1.1.0.Final
Environment: Linux Mint 13 Maya
Reporter: Vineet Reynolds
The following error is reported when starting forge with the {{--debug}} flag:
{code}
vineet@Vineet-dv6-Notebook-PC ~ $ forge --debug
/opt/forge-distribution-1.1.0.Final/bin/forge: 30: [: unexpected operator
/opt/forge-distribution-1.1.0.Final/bin/forge: 34: [: --debug: unexpected operator
/opt/forge-distribution-1.1.0.Final/bin/forge: 38: [: --debug: unexpected operator
{code}
This looks like a POSIX compliance issue. The dash shell is POSIX compliant, but not bash. But I could be wrong.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 4 months