You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "chris snow (JIRA)" <ji...@apache.org> on 2010/01/10 22:04:54 UTC

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

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.


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

Posted by "chris snow (JIRA)" <ji...@apache.org>.
     [ 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.


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

Posted by "Scott Gray (JIRA)" <ji...@apache.org>.
     [ 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.


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

Posted by "Scott Gray (JIRA)" <ji...@apache.org>.
     [ 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.