[jira] Created: (OFBIZ-3404) create-component creates invalid build.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (OFBIZ-3404) create-component creates invalid build.xml

Nicolas Malin (Jira)
create-component creates invalid build.xml
------------------------------------------

                 Key: OFBIZ-3404
                 URL: https://issues.apache.org/jira/browse/OFBIZ-3404
             Project: OFBiz
          Issue Type: Bug
          Components: framework
    Affects Versions: Release Branch 9.04
            Reporter: chris snow
         Attachments: r904_createComponent.patch

The create-component target does not generate a correct build.xml

{code}
snowch@ac:~/Desktop/ofbiz.9.04$ ./ant create-component
Buildfile: build.xml

create-component:
    [input] Component name:
cstest
    [input] Component resource name:
cstest
    [input] Webapp name:
cstest
    [input] Base permission:
cstest
     [echo] The following hot-deploy component will be created:
     [echo]               Name: cstest
     [echo]               Resource Name: cstest
     [echo]               Webapp Name: cstest
     [echo]               Base permission: cstest
     [echo]               Folder: /home/snowch/Desktop/ofbiz.9.04/hot-deploy/cstest
     [echo]        
    [input] Confirm:  (Y, [N], y, n)
y
    [mkdir] Created dir: /home/snowch/Desktop/ofbiz.9.04/hot-deploy/cstest
...
...

jar:
      [jar] Building jar: /home/snowch/Desktop/ofbiz.9.04/hot-deploy/cstest/build/lib/${name}.jar

...
{code}

Notice that the jar being built is called ${name.jar}.  The manual workaround is to change the generated build.xml:

{code}
<?xml version="1.0" encoding="UTF-8"?>

<project name="OFBiz - cstest Component" default="jar" basedir=".">
    <import file="../../common.xml"/>

    <!-- ================================================================== -->
    <!-- Initialization of all property settings                            -->
    <!-- ================================================================== -->

    <property environment="env"/>
    <property name="desc" value="cstest Component"/>
 
    <!--property name="component-name" value="ofbiz-cstest"/-->
    <property name="name" value="ofbiz-cstest"/>
{code}

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-3404) create-component creates invalid build.xml

Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-3404?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

chris snow updated OFBIZ-3404:
------------------------------

    Attachment: r904_createComponent.patch

> create-component creates invalid build.xml
> ------------------------------------------
>
>                 Key: OFBIZ-3404
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3404
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Release Branch 9.04
>            Reporter: chris snow
>         Attachments: r904_createComponent.patch
>
>
> The create-component target does not generate a correct build.xml
> {code}
> snowch@ac:~/Desktop/ofbiz.9.04$ ./ant create-component
> Buildfile: build.xml
> create-component:
>     [input] Component name:
> cstest
>     [input] Component resource name:
> cstest
>     [input] Webapp name:
> cstest
>     [input] Base permission:
> cstest
>      [echo] The following hot-deploy component will be created:
>      [echo]               Name: cstest
>      [echo]               Resource Name: cstest
>      [echo]               Webapp Name: cstest
>      [echo]               Base permission: cstest
>      [echo]               Folder: /home/snowch/Desktop/ofbiz.9.04/hot-deploy/cstest
>      [echo]        
>     [input] Confirm:  (Y, [N], y, n)
> y
>     [mkdir] Created dir: /home/snowch/Desktop/ofbiz.9.04/hot-deploy/cstest
> ...
> ...
> jar:
>       [jar] Building jar: /home/snowch/Desktop/ofbiz.9.04/hot-deploy/cstest/build/lib/${name}.jar
> ...
> {code}
> Notice that the jar being built is called ${name.jar}.  The manual workaround is to change the generated build.xml:
> {code}
> <?xml version="1.0" encoding="UTF-8"?>
> <project name="OFBiz - cstest Component" default="jar" basedir=".">
>     <import file="../../common.xml"/>
>     <!-- ================================================================== -->
>     <!-- Initialization of all property settings                            -->
>     <!-- ================================================================== -->
>     <property environment="env"/>
>     <property name="desc" value="cstest Component"/>
>  
>     <!--property name="component-name" value="ofbiz-cstest"/-->
>     <property name="name" value="ofbiz-cstest"/>
> {code}

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Assigned: (OFBIZ-3404) create-component creates invalid build.xml

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-3404?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Gray reassigned OFBIZ-3404:
---------------------------------

    Assignee: Scott Gray

> create-component creates invalid build.xml
> ------------------------------------------
>
>                 Key: OFBIZ-3404
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3404
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Release Branch 9.04
>            Reporter: chris snow
>            Assignee: Scott Gray
>         Attachments: r904_createComponent.patch
>
>
> The create-component target does not generate a correct build.xml
> {code}
> snowch@ac:~/Desktop/ofbiz.9.04$ ./ant create-component
> Buildfile: build.xml
> create-component:
>     [input] Component name:
> cstest
>     [input] Component resource name:
> cstest
>     [input] Webapp name:
> cstest
>     [input] Base permission:
> cstest
>      [echo] The following hot-deploy component will be created:
>      [echo]               Name: cstest
>      [echo]               Resource Name: cstest
>      [echo]               Webapp Name: cstest
>      [echo]               Base permission: cstest
>      [echo]               Folder: /home/snowch/Desktop/ofbiz.9.04/hot-deploy/cstest
>      [echo]        
>     [input] Confirm:  (Y, [N], y, n)
> y
>     [mkdir] Created dir: /home/snowch/Desktop/ofbiz.9.04/hot-deploy/cstest
> ...
> ...
> jar:
>       [jar] Building jar: /home/snowch/Desktop/ofbiz.9.04/hot-deploy/cstest/build/lib/${name}.jar
> ...
> {code}
> Notice that the jar being built is called ${name.jar}.  The manual workaround is to change the generated build.xml:
> {code}
> <?xml version="1.0" encoding="UTF-8"?>
> <project name="OFBiz - cstest Component" default="jar" basedir=".">
>     <import file="../../common.xml"/>
>     <!-- ================================================================== -->
>     <!-- Initialization of all property settings                            -->
>     <!-- ================================================================== -->
>     <property environment="env"/>
>     <property name="desc" value="cstest Component"/>
>  
>     <!--property name="component-name" value="ofbiz-cstest"/-->
>     <property name="name" value="ofbiz-cstest"/>
> {code}

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (OFBIZ-3404) create-component creates invalid build.xml

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-3404?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Gray closed OFBIZ-3404.
-----------------------------

       Resolution: Fixed
    Fix Version/s: Release Branch 9.04

Thanks Chris, fixed in r899842

> create-component creates invalid build.xml
> ------------------------------------------
>
>                 Key: OFBIZ-3404
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3404
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Release Branch 9.04
>            Reporter: chris snow
>            Assignee: Scott Gray
>             Fix For: Release Branch 9.04
>
>         Attachments: r904_createComponent.patch
>
>
> The create-component target does not generate a correct build.xml
> {code}
> snowch@ac:~/Desktop/ofbiz.9.04$ ./ant create-component
> Buildfile: build.xml
> create-component:
>     [input] Component name:
> cstest
>     [input] Component resource name:
> cstest
>     [input] Webapp name:
> cstest
>     [input] Base permission:
> cstest
>      [echo] The following hot-deploy component will be created:
>      [echo]               Name: cstest
>      [echo]               Resource Name: cstest
>      [echo]               Webapp Name: cstest
>      [echo]               Base permission: cstest
>      [echo]               Folder: /home/snowch/Desktop/ofbiz.9.04/hot-deploy/cstest
>      [echo]        
>     [input] Confirm:  (Y, [N], y, n)
> y
>     [mkdir] Created dir: /home/snowch/Desktop/ofbiz.9.04/hot-deploy/cstest
> ...
> ...
> jar:
>       [jar] Building jar: /home/snowch/Desktop/ofbiz.9.04/hot-deploy/cstest/build/lib/${name}.jar
> ...
> {code}
> Notice that the jar being built is called ${name.jar}.  The manual workaround is to change the generated build.xml:
> {code}
> <?xml version="1.0" encoding="UTF-8"?>
> <project name="OFBiz - cstest Component" default="jar" basedir=".">
>     <import file="../../common.xml"/>
>     <!-- ================================================================== -->
>     <!-- Initialization of all property settings                            -->
>     <!-- ================================================================== -->
>     <property environment="env"/>
>     <property name="desc" value="cstest Component"/>
>  
>     <!--property name="component-name" value="ofbiz-cstest"/-->
>     <property name="name" value="ofbiz-cstest"/>
> {code}

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.