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}
sno...@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.