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

Tom Vincent updated CB-7264:
----------------------------

    Description: 
Steps to reproduce:

1. {{plugman create --name hello-world --plugin_id 
com.example.cordova.helloworld --plugin_version 0.1.0}}
2. {{cd hello-world}}
3. {{cat plugin.xml}}

{{
<?xml version='1.0' encoding='utf-8'?>
<plugin id="com.example.cordova.helloworld" version="0.1.0" 
xmlns="http://apache.org/cordova/ns/plugins/1.0"; 
xmlns:android="http://schemas.android.com/apk/res/android";>
    <name>hello-world</name>
    <js-module name="hello-world" src="www/hello-world.js">
        <clobbers target="cordova.plugins.hello-world" />
    </js-module>
</plugin>
}}

4. {{plugman platform add --platform_name android}}
5. {{cat plugin.xml}}

{{
<plugin id="com.example.cordova.helloworld" version="0.1.0" 
xmlns="http://apache.org/cordova/ns/plugins/1.0"; 
xmlns:android="http://schemas.android.com/apk/res/android";><name>hello-world</name><js-module
 name="hello-world" src="www/hello-world.js"><clobbers 
target="cordova.plugins.hello-world" /></js-module><platform 
name="android"><config-file parent="/*" target="res/xml/config.xml"><feature 
name="hello-world"><param name="android-package" 
value="com.example.cordova.helloworld.hello-world" 
/></feature></config-file><config-file parent="/*" 
target="AndroidManifest.xml"></config-file><source-file 
src="src/android/hello-world.java" 
target-dir="src/com/example/cordova/helloworld/hello-world" 
/></platform></plugin>
}}

  was:
Steps to reproduce:

1. {{plugman create --name hello-world --plugin_id 
com.example.cordova.helloworld --plugin_version 0.1.0}}
2. {{cd hello-world}}
3. {{cat plugin.xml}}

{{{
<?xml version='1.0' encoding='utf-8'?>
<plugin id="com.example.cordova.helloworld" version="0.1.0" 
xmlns="http://apache.org/cordova/ns/plugins/1.0"; 
xmlns:android="http://schemas.android.com/apk/res/android";>
    <name>hello-world</name>
    <js-module name="hello-world" src="www/hello-world.js">
        <clobbers target="cordova.plugins.hello-world" />
    </js-module>
</plugin>
```
4. `plugman platform add --platform_name android`
5. `cat plugin.xml`
```
<plugin id="com.example.cordova.helloworld" version="0.1.0" 
xmlns="http://apache.org/cordova/ns/plugins/1.0"; 
xmlns:android="http://schemas.android.com/apk/res/android";><name>hello-world</name><js-module
 name="hello-world" src="www/hello-world.js"><clobbers 
target="cordova.plugins.hello-world" /></js-module><platform 
name="android"><config-file parent="/*" target="res/xml/config.xml"><feature 
name="hello-world"><param name="android-package" 
value="com.example.cordova.helloworld.hello-world" 
/></feature></config-file><config-file parent="/*" 
target="AndroidManifest.xml"></config-file><source-file 
src="src/android/hello-world.java" 
target-dir="src/com/example/cordova/helloworld/hello-world" 
/></platform></plugin>
```


> plugman platform add minifies plugin.xml
> ----------------------------------------
>
>                 Key: CB-7264
>                 URL: https://issues.apache.org/jira/browse/CB-7264
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugman
>         Environment: OS X 10.9.3, npm v1.4.23, node v0.10.30, plugman v0.22.4
>            Reporter: Tom Vincent
>            Priority: Minor
>
> Steps to reproduce:
> 1. {{plugman create --name hello-world --plugin_id 
> com.example.cordova.helloworld --plugin_version 0.1.0}}
> 2. {{cd hello-world}}
> 3. {{cat plugin.xml}}
> {{
> <?xml version='1.0' encoding='utf-8'?>
> <plugin id="com.example.cordova.helloworld" version="0.1.0" 
> xmlns="http://apache.org/cordova/ns/plugins/1.0"; 
> xmlns:android="http://schemas.android.com/apk/res/android";>
>     <name>hello-world</name>
>     <js-module name="hello-world" src="www/hello-world.js">
>         <clobbers target="cordova.plugins.hello-world" />
>     </js-module>
> </plugin>
> }}
> 4. {{plugman platform add --platform_name android}}
> 5. {{cat plugin.xml}}
> {{
> <plugin id="com.example.cordova.helloworld" version="0.1.0" 
> xmlns="http://apache.org/cordova/ns/plugins/1.0"; 
> xmlns:android="http://schemas.android.com/apk/res/android";><name>hello-world</name><js-module
>  name="hello-world" src="www/hello-world.js"><clobbers 
> target="cordova.plugins.hello-world" /></js-module><platform 
> name="android"><config-file parent="/*" target="res/xml/config.xml"><feature 
> name="hello-world"><param name="android-package" 
> value="com.example.cordova.helloworld.hello-world" 
> /></feature></config-file><config-file parent="/*" 
> target="AndroidManifest.xml"></config-file><source-file 
> src="src/android/hello-world.java" 
> target-dir="src/com/example/cordova/helloworld/hello-world" 
> /></platform></plugin>
> }}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to