You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by Lisa Seacat DeLuca <ld...@us.ibm.com> on 2014/03/14 14:59:55 UTC
plugman create plugin on Windows issues
I've walked through the plugman plugin creation documentation and am
having a few issues on Windows. I'd like to cleanup the docs and also get
more experience creating a 3rd party plugin.
1. first I created my new plugin
C:\workspaces\lisa>plugman create --name TestPlugin --plugin_id
com.ibm.cordova.plugin.test --plugin_version 0.1
2. then I added the android platform:
C:\workspaces\lisa\TestPlugin>plugman platform add --platform_name android
that is all okay, i see the android directory under the src directory.
3. Then I create a new cordova project to add my plugin to:
C:\workspaces\lisa>cordova create test com.ibm.test Test
Creating a new cordova project with name "Test" and id "com.ibm.test" at
location "C:\workspaces\lisa\test"
C:\workspaces\lisa>cd test
C:\workspaces\lisa\test>cordova platform add android
Creating android project...
Creating Cordova project for the Android platform:
Path: platforms\android
Package: com.ibm.test
Name: Test
Android target: android-19
Copying template files...
Running: android update project --subprojects --path "platforms\android"
--targe
t android-19 --library "CordovaLib"
Resolved location of library project to:
C:\workspaces\bluemix\test\platforms\an
droid\CordovaLib
Updated and renamed default.properties to project.properties
Updated local.properties
No project name specified, using Activity name 'Test'.
If you wish to change it, edit the first line of build.xml.
Added file C:\workspaces\lisa\test\platforms\android\build.xml
Added file C:\workspaces\lisa\test\platforms\android\proguard-project.txt
Updated project.properties
Updated local.properties
No project name specified, using project folder name 'CordovaLib'.
If you wish to change it, edit the first line of build.xml.
Added file C:\workspaces\lisa\test\platforms\android\CordovaLib\build.xml
Added file
C:\workspaces\lisa\test\platforms\android\CordovaLib\proguard-oject.txt
Project successfully created.
Generating config.xml from defaults for platform "android"
Preparing android project
4. Then I install the new plugin on the project I created:
THIS IS WHERE IT GETS INTERESTING:
C:\workspaces\lisa\test>plugman install --platform android --project
C;\works
paces\lisa\test\www --plugin C:\workspaces\lisa\TestPlugin
Installing com.ibm.cordova.plugin.test (android)
ENOENT, no such file or directory
'C:\workspaces\lisa\test\C;\workspaces\lisa\test\www\AndroidManifest.xml'
*** failed so I try again, this time I see:
C:\workspaces\bluemix\test>plugman install --platform android --project
C;\works
paces\lisa\test\www --plugin C:\workspaces\lisa\TestPlugin
Installing com.ibm.cordova.plugin.test (android)
Error during processing of action! Attempting to revert...
Uh oh!
"C:\workspaces\lisa\test\C;\workspaces\lisa\test\www\src\com\ibm\cordova\p
lugin\lisa\TestPlugin\TestPlugin.java"
already exists!
**** try to uninstall
C:\workspaces\lisa\test>plugman uninstall --platform android --project
C;\wor
kspaces\lisa\test\www --plugin C:\workspaces\lisa\TestPlugin
Plugin "C:\workspaces\lisa\TestPlugin" not found. Already
uninstalled?
Any suggestions on what I may have done wrong would be appreciated.
Thanks,
Lisa
Lisa Seacat DeLuca
Mobile Engineer | t: +415.787.4589 | ldeluca@apache.org | |
ldeluca@us.ibm.com | lisaseacat.com | |
Re: plugman create plugin on Windows issues
Posted by Lisa Seacat DeLuca <ld...@us.ibm.com>.
Thanks for the suggestion. However, I tried \\, same issue. I can use
tab to auto complete so I don't think that's the issue. Regardless, tried
both of your suggestions and still see the same error on windows.
Lisa
Lisa Seacat DeLuca
Mobile Engineer | t: +415.787.4589 | ldeluca@apache.org | |
ldeluca@us.ibm.com | lisaseacat.com | |
From: purplecabbage <pu...@gmail.com>
To: "dev@cordova.apache.org" <de...@cordova.apache.org>
Date: 03/14/2014 11:17 AM
Subject: Re: plugman create plugin on Windows issues
What is your shell? If you use git bash then either escape \ => \\ or use
/
Sent from my iPhone
> On Mar 14, 2014, at 7:56 AM, Lisa Seacat DeLuca <ld...@us.ibm.com>
wrote:
>
> Bas, good catch.
>
> Still seeing the same error though when I use a : instead of ;
>
> C:\workspaces\lisa\test2>plugman install --platform android --project
C:\workspaces\lisa\test2\www --plugin C:\workspaces\lisa\TestPlugin
> Installing com.ibm.cordova.plugin.test (android)
> ENOENT, no such file or directory
'C:\workspaces\lisa\test2\www\AndroidManifest.xml'
>
> Sergey's work around of using the CLI instead of plugman works for now.
>
>
> Lisa
>
> Lisa Seacat DeLuca
> Mobile Engineer | t: +415.787.4589 | ldeluca@apache.org | |
ldeluca@us.ibm.com | lisaseacat.com | |
>
>
>
>
>
> From: "Bas Bosman" <ma...@nazgul.nu>
> To: dev@cordova.apache.org
> Date: 03/14/2014 10:44 AM
> Subject: RE: plugman create plugin on Windows issues
>
>
>
> Lisa,
>
> I noticed you used a semicolon in your project path instead of a colon?
>
> You used C;\workspaces\lisa\test\www, which should be
> C:\workspaces\lisa\test\www
>
> Regards,
> Bas Bosman
>
> > From: Lisa Seacat DeLuca [mailto:ldeluca@us.ibm.com]
> > Sent: Friday, March 14, 2014 6:00 PM
> > To: Cordova Dev (dev@cordova.apache.org)
> > Subject: plugman create plugin on Windows issues
> >
> > I've walked through the plugman plugin creation documentation and am
> > having a few issues on Windows. I'd like to cleanup the docs and also
get
> > more experience creating a 3rd party plugin.
> >
> > 1. first I created my new plugin
> >
> > C:\workspaces\lisa>plugman create --name TestPlugin --plugin_id
> > com.ibm.cordova.plugin.test --plugin_version 0.1
> >
> > 2. then I added the android platform:
> >
> > C:\workspaces\lisa\TestPlugin>plugman platform add --platform_name
android
> >
> > that is all okay, i see the android directory under the src directory.
> >
> > 3. Then I create a new cordova project to add my plugin to:
> >
> > C:\workspaces\lisa>cordova create test com.ibm.test Test
> > Creating a new cordova project with name "Test" and id "com.ibm.test"
at
> > location "C:\workspaces\lisa\test"
> >
> > C:\workspaces\lisa>cd test
> >
> > C:\workspaces\lisa\test>cordova platform add android
> > Creating android project...
> > Creating Cordova project for the Android platform:
> > Path: platforms\android
> > Package: com.ibm.test
> > Name: Test
> > Android target: android-19
> > Copying template files...
> > Running: android update project --subprojects --path
"platforms\android"
> > --targe
> > t android-19 --library "CordovaLib"
> > Resolved location of library project to:
> > C:\workspaces\bluemix\test\platforms\an
> > droid\CordovaLib
> > Updated and renamed default.properties to project.properties
> > Updated local.properties
> > No project name specified, using Activity name 'Test'.
> > If you wish to change it, edit the first line of build.xml.
> > Added file C:\workspaces\lisa\test\platforms\android\build.xml
> > Added file
C:\workspaces\lisa\test\platforms\android\proguard-project.txt
> > Updated project.properties
> > Updated local.properties
> > No project name specified, using project folder name 'CordovaLib'.
> > If you wish to change it, edit the first line of build.xml.
> > Added file
C:\workspaces\lisa\test\platforms\android\CordovaLib\build.xml
> > Added file
> >
C:\workspaces\lisa\test\platforms\android\CordovaLib\proguard-oject.txt
> >
> > Project successfully created.
> > Generating config.xml from defaults for platform "android"
> > Preparing android project
> >
> > 4. Then I install the new plugin on the project I created:
> > THIS IS WHERE IT GETS INTERESTING:
> >
> > C:\workspaces\lisa\test>plugman install --platform android --project
> > C;\works
> > paces\lisa\test\www --plugin C:\workspaces\lisa\TestPlugin
> > Installing com.ibm.cordova.plugin.test (android)
> > ENOENT, no such file or directory
> >
'C:\workspaces\lisa\test\C;\workspaces\lisa\test\www\AndroidManifest.xml'
> >
> > *** failed so I try again, this time I see:
> > C:\workspaces\bluemix\test>plugman install --platform android
--project
> > C;\works
> > paces\lisa\test\www --plugin C:\workspaces\lisa\TestPlugin
> > Installing com.ibm.cordova.plugin.test (android)
> > Error during processing of action! Attempting to revert...
> > Uh oh!
> >
"C:\workspaces\lisa\test\C;\workspaces\lisa\test\www\src\com\ibm\cordova\p
> > lugin\lisa\TestPlugin\TestPlugin.java"
> > already exists!
> >
> > **** try to uninstall
> > C:\workspaces\lisa\test>plugman uninstall --platform android --project
> > C;\wor
> > kspaces\lisa\test\www --plugin C:\workspaces\lisa\TestPlugin
> > Plugin "C:\workspaces\lisa\TestPlugin" not found. Already
> > uninstalled?
> >
> > Any suggestions on what I may have done wrong would be appreciated.
> > Thanks,
> >
> >
> > Lisa
> >
> > Lisa Seacat DeLuca
> > Mobile Engineer | t: +415.787.4589 |
> > ldeluca@apache.org<ma...@apache.org> | |
> > ldeluca@us.ibm.com<ma...@us.ibm.com> |
> > lisaseacat.com<http://www.lisaseacat.com/> | [follow @LisaSeacat on
> > twitter] <www.twitter.com/LisaSeacat> | [follow Lisa Seacat DeLuca on
> > linkedin] <http://www.linkedin.com/in/lisaseacat>
> >
>
>
>
Re: plugman create plugin on Windows issues
Posted by purplecabbage <pu...@gmail.com>.
What is your shell? If you use git bash then either escape \ => \\ or use /
Sent from my iPhone
> On Mar 14, 2014, at 7:56 AM, Lisa Seacat DeLuca <ld...@us.ibm.com> wrote:
>
> Bas, good catch.
>
> Still seeing the same error though when I use a : instead of ;
>
> C:\workspaces\lisa\test2>plugman install --platform android --project C:\workspaces\lisa\test2\www --plugin C:\workspaces\lisa\TestPlugin
> Installing com.ibm.cordova.plugin.test (android)
> ENOENT, no such file or directory 'C:\workspaces\lisa\test2\www\AndroidManifest.xml'
>
> Sergey's work around of using the CLI instead of plugman works for now.
>
>
> Lisa
>
> Lisa Seacat DeLuca
> Mobile Engineer | t: +415.787.4589 | ldeluca@apache.org | | ldeluca@us.ibm.com | lisaseacat.com | |
>
>
>
>
>
> From: "Bas Bosman" <ma...@nazgul.nu>
> To: dev@cordova.apache.org
> Date: 03/14/2014 10:44 AM
> Subject: RE: plugman create plugin on Windows issues
>
>
>
> Lisa,
>
> I noticed you used a semicolon in your project path instead of a colon?
>
> You used C;\workspaces\lisa\test\www, which should be
> C:\workspaces\lisa\test\www
>
> Regards,
> Bas Bosman
>
> > From: Lisa Seacat DeLuca [mailto:ldeluca@us.ibm.com]
> > Sent: Friday, March 14, 2014 6:00 PM
> > To: Cordova Dev (dev@cordova.apache.org)
> > Subject: plugman create plugin on Windows issues
> >
> > I've walked through the plugman plugin creation documentation and am
> > having a few issues on Windows. I'd like to cleanup the docs and also get
> > more experience creating a 3rd party plugin.
> >
> > 1. first I created my new plugin
> >
> > C:\workspaces\lisa>plugman create --name TestPlugin --plugin_id
> > com.ibm.cordova.plugin.test --plugin_version 0.1
> >
> > 2. then I added the android platform:
> >
> > C:\workspaces\lisa\TestPlugin>plugman platform add --platform_name android
> >
> > that is all okay, i see the android directory under the src directory.
> >
> > 3. Then I create a new cordova project to add my plugin to:
> >
> > C:\workspaces\lisa>cordova create test com.ibm.test Test
> > Creating a new cordova project with name "Test" and id "com.ibm.test" at
> > location "C:\workspaces\lisa\test"
> >
> > C:\workspaces\lisa>cd test
> >
> > C:\workspaces\lisa\test>cordova platform add android
> > Creating android project...
> > Creating Cordova project for the Android platform:
> > Path: platforms\android
> > Package: com.ibm.test
> > Name: Test
> > Android target: android-19
> > Copying template files...
> > Running: android update project --subprojects --path "platforms\android"
> > --targe
> > t android-19 --library "CordovaLib"
> > Resolved location of library project to:
> > C:\workspaces\bluemix\test\platforms\an
> > droid\CordovaLib
> > Updated and renamed default.properties to project.properties
> > Updated local.properties
> > No project name specified, using Activity name 'Test'.
> > If you wish to change it, edit the first line of build.xml.
> > Added file C:\workspaces\lisa\test\platforms\android\build.xml
> > Added file C:\workspaces\lisa\test\platforms\android\proguard-project.txt
> > Updated project.properties
> > Updated local.properties
> > No project name specified, using project folder name 'CordovaLib'.
> > If you wish to change it, edit the first line of build.xml.
> > Added file C:\workspaces\lisa\test\platforms\android\CordovaLib\build.xml
> > Added file
> > C:\workspaces\lisa\test\platforms\android\CordovaLib\proguard-oject.txt
> >
> > Project successfully created.
> > Generating config.xml from defaults for platform "android"
> > Preparing android project
> >
> > 4. Then I install the new plugin on the project I created:
> > THIS IS WHERE IT GETS INTERESTING:
> >
> > C:\workspaces\lisa\test>plugman install --platform android --project
> > C;\works
> > paces\lisa\test\www --plugin C:\workspaces\lisa\TestPlugin
> > Installing com.ibm.cordova.plugin.test (android)
> > ENOENT, no such file or directory
> > 'C:\workspaces\lisa\test\C;\workspaces\lisa\test\www\AndroidManifest.xml'
> >
> > *** failed so I try again, this time I see:
> > C:\workspaces\bluemix\test>plugman install --platform android --project
> > C;\works
> > paces\lisa\test\www --plugin C:\workspaces\lisa\TestPlugin
> > Installing com.ibm.cordova.plugin.test (android)
> > Error during processing of action! Attempting to revert...
> > Uh oh!
> > "C:\workspaces\lisa\test\C;\workspaces\lisa\test\www\src\com\ibm\cordova\p
> > lugin\lisa\TestPlugin\TestPlugin.java"
> > already exists!
> >
> > **** try to uninstall
> > C:\workspaces\lisa\test>plugman uninstall --platform android --project
> > C;\wor
> > kspaces\lisa\test\www --plugin C:\workspaces\lisa\TestPlugin
> > Plugin "C:\workspaces\lisa\TestPlugin" not found. Already
> > uninstalled?
> >
> > Any suggestions on what I may have done wrong would be appreciated.
> > Thanks,
> >
> >
> > Lisa
> >
> > Lisa Seacat DeLuca
> > Mobile Engineer | t: +415.787.4589 |
> > ldeluca@apache.org<ma...@apache.org> | |
> > ldeluca@us.ibm.com<ma...@us.ibm.com> |
> > lisaseacat.com<http://www.lisaseacat.com/> | [follow @LisaSeacat on
> > twitter] <www.twitter.com/LisaSeacat> | [follow Lisa Seacat DeLuca on
> > linkedin] <http://www.linkedin.com/in/lisaseacat>
> >
>
>
>
RE: plugman create plugin on Windows issues
Posted by Jonathan Bond-Caron <jb...@gdesolutions.com>.
On Fri Mar 14 10:56 AM, Lisa Seacat DeLuca wrote:
> Bas, good catch.
>
> Still seeing the same error though when I use a : instead of ;
>
> C:\workspaces\lisa\test2>plugman install --platform android --project C:\workspaces\lisa\test2\www --plugin C:\workspaces\lisa\TestPlugin
> Installing com.ibm.cordova.plugin.test (android)
> ENOENT, no such file or directory 'C:\workspaces\lisa\test2\www\AndroidManifest.xml'
>
> Sergey's work around of using the CLI instead of plugman works for now.
>
C:\workspaces\lisa\test2>plugman install --platform android --project .\platforms\android --plugin C:\workspaces\lisa\TestPlugin
C:\workspaces\lisa\test2>plugman uninstall --platform android --project .\platforms\android --plugin C:\workspaces\lisa\TestPlugin
Unfortunately not a bug, just not intuitive at all :/
Plugman expects the 'native' project path (.\platforms\android) & installs plugins in .\platforms\android\cordova\plugins
Cli installs plugins in .\plugins
In general, mixing cli & plugman isn't a good, there're incompatible since they install plugins in different locations.
RE: plugman create plugin on Windows issues
Posted by Lisa Seacat DeLuca <ld...@us.ibm.com>.
Bas, good catch.
Still seeing the same error though when I use a : instead of ;
C:\workspaces\lisa\test2>plugman install --platform android --project
C:\workspaces\lisa\test2\www --plugin C:\workspaces\lisa\TestPlugin
Installing com.ibm.cordova.plugin.test (android)
ENOENT, no such file or directory
'C:\workspaces\lisa\test2\www\AndroidManifest.xml'
Sergey's work around of using the CLI instead of plugman works for now.
Lisa
Lisa Seacat DeLuca
Mobile Engineer | t: +415.787.4589 | ldeluca@apache.org | |
ldeluca@us.ibm.com | lisaseacat.com | |
From: "Bas Bosman" <ma...@nazgul.nu>
To: dev@cordova.apache.org
Date: 03/14/2014 10:44 AM
Subject: RE: plugman create plugin on Windows issues
Lisa,
I noticed you used a semicolon in your project path instead of a colon?
You used C;\workspaces\lisa\test\www, which should be
C:\workspaces\lisa\test\www
Regards,
Bas Bosman
> From: Lisa Seacat DeLuca [mailto:ldeluca@us.ibm.com]
> Sent: Friday, March 14, 2014 6:00 PM
> To: Cordova Dev (dev@cordova.apache.org)
> Subject: plugman create plugin on Windows issues
>
> I've walked through the plugman plugin creation documentation and am
> having a few issues on Windows. I'd like to cleanup the docs and also
get
> more experience creating a 3rd party plugin.
>
> 1. first I created my new plugin
>
> C:\workspaces\lisa>plugman create --name TestPlugin --plugin_id
> com.ibm.cordova.plugin.test --plugin_version 0.1
>
> 2. then I added the android platform:
>
> C:\workspaces\lisa\TestPlugin>plugman platform add --platform_name
android
>
> that is all okay, i see the android directory under the src directory.
>
> 3. Then I create a new cordova project to add my plugin to:
>
> C:\workspaces\lisa>cordova create test com.ibm.test Test
> Creating a new cordova project with name "Test" and id "com.ibm.test" at
> location "C:\workspaces\lisa\test"
>
> C:\workspaces\lisa>cd test
>
> C:\workspaces\lisa\test>cordova platform add android
> Creating android project...
> Creating Cordova project for the Android platform:
> Path: platforms\android
> Package: com.ibm.test
> Name: Test
> Android target: android-19
> Copying template files...
> Running: android update project --subprojects --path "platforms\android"
> --targe
> t android-19 --library "CordovaLib"
> Resolved location of library project to:
> C:\workspaces\bluemix\test\platforms\an
> droid\CordovaLib
> Updated and renamed default.properties to project.properties
> Updated local.properties
> No project name specified, using Activity name 'Test'.
> If you wish to change it, edit the first line of build.xml.
> Added file C:\workspaces\lisa\test\platforms\android\build.xml
> Added file
C:\workspaces\lisa\test\platforms\android\proguard-project.txt
> Updated project.properties
> Updated local.properties
> No project name specified, using project folder name 'CordovaLib'.
> If you wish to change it, edit the first line of build.xml.
> Added file
C:\workspaces\lisa\test\platforms\android\CordovaLib\build.xml
> Added file
> C:\workspaces\lisa\test\platforms\android\CordovaLib\proguard-oject.txt
>
> Project successfully created.
> Generating config.xml from defaults for platform "android"
> Preparing android project
>
> 4. Then I install the new plugin on the project I created:
> THIS IS WHERE IT GETS INTERESTING:
>
> C:\workspaces\lisa\test>plugman install --platform android --project
> C;\works
> paces\lisa\test\www --plugin C:\workspaces\lisa\TestPlugin
> Installing com.ibm.cordova.plugin.test (android)
> ENOENT, no such file or directory
>
'C:\workspaces\lisa\test\C;\workspaces\lisa\test\www\AndroidManifest.xml'
>
> *** failed so I try again, this time I see:
> C:\workspaces\bluemix\test>plugman install --platform android --project
> C;\works
> paces\lisa\test\www --plugin C:\workspaces\lisa\TestPlugin
> Installing com.ibm.cordova.plugin.test (android)
> Error during processing of action! Attempting to revert...
> Uh oh!
>
"C:\workspaces\lisa\test\C;\workspaces\lisa\test\www\src\com\ibm\cordova\p
> lugin\lisa\TestPlugin\TestPlugin.java"
> already exists!
>
> **** try to uninstall
> C:\workspaces\lisa\test>plugman uninstall --platform android --project
> C;\wor
> kspaces\lisa\test\www --plugin C:\workspaces\lisa\TestPlugin
> Plugin "C:\workspaces\lisa\TestPlugin" not found. Already
> uninstalled?
>
> Any suggestions on what I may have done wrong would be appreciated.
> Thanks,
>
>
> Lisa
>
> Lisa Seacat DeLuca
> Mobile Engineer | t: +415.787.4589 |
> ldeluca@apache.org<ma...@apache.org> | |
> ldeluca@us.ibm.com<ma...@us.ibm.com> |
> lisaseacat.com<http://www.lisaseacat.com/> | [follow @LisaSeacat on
> twitter] <www.twitter.com/LisaSeacat> | [follow Lisa Seacat DeLuca on
> linkedin] <http://www.linkedin.com/in/lisaseacat>
>
RE: plugman create plugin on Windows issues
Posted by Bas Bosman <ma...@nazgul.nu>.
Lisa,
I noticed you used a semicolon in your project path instead of a colon?
You used C;\workspaces\lisa\test\www, which should be
C:\workspaces\lisa\test\www
Regards,
Bas Bosman
> From: Lisa Seacat DeLuca [mailto:ldeluca@us.ibm.com]
> Sent: Friday, March 14, 2014 6:00 PM
> To: Cordova Dev (dev@cordova.apache.org)
> Subject: plugman create plugin on Windows issues
>
> I've walked through the plugman plugin creation documentation and am
> having a few issues on Windows. I'd like to cleanup the docs and also get
> more experience creating a 3rd party plugin.
>
> 1. first I created my new plugin
>
> C:\workspaces\lisa>plugman create --name TestPlugin --plugin_id
> com.ibm.cordova.plugin.test --plugin_version 0.1
>
> 2. then I added the android platform:
>
> C:\workspaces\lisa\TestPlugin>plugman platform add --platform_name android
>
> that is all okay, i see the android directory under the src directory.
>
> 3. Then I create a new cordova project to add my plugin to:
>
> C:\workspaces\lisa>cordova create test com.ibm.test Test
> Creating a new cordova project with name "Test" and id "com.ibm.test" at
> location "C:\workspaces\lisa\test"
>
> C:\workspaces\lisa>cd test
>
> C:\workspaces\lisa\test>cordova platform add android
> Creating android project...
> Creating Cordova project for the Android platform:
> Path: platforms\android
> Package: com.ibm.test
> Name: Test
> Android target: android-19
> Copying template files...
> Running: android update project --subprojects --path "platforms\android"
> --targe
> t android-19 --library "CordovaLib"
> Resolved location of library project to:
> C:\workspaces\bluemix\test\platforms\an
> droid\CordovaLib
> Updated and renamed default.properties to project.properties
> Updated local.properties
> No project name specified, using Activity name 'Test'.
> If you wish to change it, edit the first line of build.xml.
> Added file C:\workspaces\lisa\test\platforms\android\build.xml
> Added file C:\workspaces\lisa\test\platforms\android\proguard-project.txt
> Updated project.properties
> Updated local.properties
> No project name specified, using project folder name 'CordovaLib'.
> If you wish to change it, edit the first line of build.xml.
> Added file C:\workspaces\lisa\test\platforms\android\CordovaLib\build.xml
> Added file
> C:\workspaces\lisa\test\platforms\android\CordovaLib\proguard-oject.txt
>
> Project successfully created.
> Generating config.xml from defaults for platform "android"
> Preparing android project
>
> 4. Then I install the new plugin on the project I created:
> THIS IS WHERE IT GETS INTERESTING:
>
> C:\workspaces\lisa\test>plugman install --platform android --project
> C;\works
> paces\lisa\test\www --plugin C:\workspaces\lisa\TestPlugin
> Installing com.ibm.cordova.plugin.test (android)
> ENOENT, no such file or directory
> 'C:\workspaces\lisa\test\C;\workspaces\lisa\test\www\AndroidManifest.xml'
>
> *** failed so I try again, this time I see:
> C:\workspaces\bluemix\test>plugman install --platform android --project
> C;\works
> paces\lisa\test\www --plugin C:\workspaces\lisa\TestPlugin
> Installing com.ibm.cordova.plugin.test (android)
> Error during processing of action! Attempting to revert...
> Uh oh!
> "C:\workspaces\lisa\test\C;\workspaces\lisa\test\www\src\com\ibm\cordova\p
> lugin\lisa\TestPlugin\TestPlugin.java"
> already exists!
>
> **** try to uninstall
> C:\workspaces\lisa\test>plugman uninstall --platform android --project
> C;\wor
> kspaces\lisa\test\www --plugin C:\workspaces\lisa\TestPlugin
> Plugin "C:\workspaces\lisa\TestPlugin" not found. Already
> uninstalled?
>
> Any suggestions on what I may have done wrong would be appreciated.
> Thanks,
>
>
> Lisa
>
> Lisa Seacat DeLuca
> Mobile Engineer | t: +415.787.4589 |
> ldeluca@apache.org<ma...@apache.org> | |
> ldeluca@us.ibm.com<ma...@us.ibm.com> |
> lisaseacat.com<http://www.lisaseacat.com/> | [follow @LisaSeacat on
> twitter] <www.twitter.com/LisaSeacat> | [follow Lisa Seacat DeLuca on
> linkedin] <http://www.linkedin.com/in/lisaseacat>
>
RE: plugman create plugin on Windows issues
Posted by Lisa Seacat DeLuca <ld...@us.ibm.com>.
Sergey, thank you! That worked. Now to figure out the best way to do
plugin development. I'm writing the android side and since it's Java I
want to use an IDE rather than brackets to compile the code. I imported
into Eclipse as an existing android project code. But imported the entire
cordova project rather than just the plugin. If I just do the plugin the
java doesn't compile. Does anyone have any tips/tricks for working with
the android plugin source for development? Is what I'm doing what you'd
recommend?
Also, should I opened a JIRA issue to track the windows plugman issue I
saw. I know that we don't formally support the plugin creation stuff from
plugman.. yet. So when we get to it this information will be preserved.
Here's the url: https://issues.apache.org/jira/browse/CB-6252
Thanks,
Lisa
Lisa Seacat DeLuca
Mobile Engineer | t: +415.787.4589 | ldeluca@apache.org | |
ldeluca@us.ibm.com | lisaseacat.com | |
From: "Sergey Grebnov (Akvelon)" <v-...@microsoft.com>
To: "dev@cordova.apache.org" <de...@cordova.apache.org>
Date: 03/14/2014 10:22 AM
Subject: RE: plugman create plugin on Windows issues
Hi Lisa,
Could you please run 'cordova plugin add C:\workspaces\lisa\TestPlugin'
from cordova app root and see if it works?
-Sergey
From: Lisa Seacat DeLuca [mailto:ldeluca@us.ibm.com]
Sent: Friday, March 14, 2014 6:00 PM
To: Cordova Dev (dev@cordova.apache.org)
Subject: plugman create plugin on Windows issues
I've walked through the plugman plugin creation documentation and am
having a few issues on Windows. I'd like to cleanup the docs and also get
more experience creating a 3rd party plugin.
1. first I created my new plugin
C:\workspaces\lisa>plugman create --name TestPlugin --plugin_id
com.ibm.cordova.plugin.test --plugin_version 0.1
2. then I added the android platform:
C:\workspaces\lisa\TestPlugin>plugman platform add --platform_name android
that is all okay, i see the android directory under the src directory.
3. Then I create a new cordova project to add my plugin to:
C:\workspaces\lisa>cordova create test com.ibm.test Test
Creating a new cordova project with name "Test" and id "com.ibm.test" at
location "C:\workspaces\lisa\test"
C:\workspaces\lisa>cd test
C:\workspaces\lisa\test>cordova platform add android
Creating android project...
Creating Cordova project for the Android platform:
Path: platforms\android
Package: com.ibm.test
Name: Test
Android target: android-19
Copying template files...
Running: android update project --subprojects --path "platforms\android"
--targe
t android-19 --library "CordovaLib"
Resolved location of library project to:
C:\workspaces\bluemix\test\platforms\an
droid\CordovaLib
Updated and renamed default.properties to project.properties
Updated local.properties
No project name specified, using Activity name 'Test'.
If you wish to change it, edit the first line of build.xml.
Added file C:\workspaces\lisa\test\platforms\android\build.xml
Added file C:\workspaces\lisa\test\platforms\android\proguard-project.txt
Updated project.properties
Updated local.properties
No project name specified, using project folder name 'CordovaLib'.
If you wish to change it, edit the first line of build.xml.
Added file C:\workspaces\lisa\test\platforms\android\CordovaLib\build.xml
Added file
C:\workspaces\lisa\test\platforms\android\CordovaLib\proguard-oject.txt
Project successfully created.
Generating config.xml from defaults for platform "android"
Preparing android project
4. Then I install the new plugin on the project I created:
THIS IS WHERE IT GETS INTERESTING:
C:\workspaces\lisa\test>plugman install --platform android --project
C;\works
paces\lisa\test\www --plugin C:\workspaces\lisa\TestPlugin
Installing com.ibm.cordova.plugin.test (android)
ENOENT, no such file or directory
'C:\workspaces\lisa\test\C;\workspaces\lisa\test\www\AndroidManifest.xml'
*** failed so I try again, this time I see:
C:\workspaces\bluemix\test>plugman install --platform android --project
C;\works
paces\lisa\test\www --plugin C:\workspaces\lisa\TestPlugin
Installing com.ibm.cordova.plugin.test (android)
Error during processing of action! Attempting to revert...
Uh oh!
"C:\workspaces\lisa\test\C;\workspaces\lisa\test\www\src\com\ibm\cordova\p
lugin\lisa\TestPlugin\TestPlugin.java"
already exists!
**** try to uninstall
C:\workspaces\lisa\test>plugman uninstall --platform android --project
C;\wor
kspaces\lisa\test\www --plugin C:\workspaces\lisa\TestPlugin
Plugin "C:\workspaces\lisa\TestPlugin" not found. Already
uninstalled?
Any suggestions on what I may have done wrong would be appreciated.
Thanks,
Lisa
Lisa Seacat DeLuca
Mobile Engineer | t: +415.787.4589 | ldeluca@apache.org<
mailto:ldeluca@apache.org> | | ldeluca@us.ibm.com<
mailto:ldeluca@us.ibm.com> | lisaseacat.com<http://www.lisaseacat.com/> |
[follow @LisaSeacat on twitter] <www.twitter.com/LisaSeacat> | [follow
Lisa Seacat DeLuca on linkedin] <http://www.linkedin.com/in/lisaseacat>
RE: plugman create plugin on Windows issues
Posted by "Sergey Grebnov (Akvelon)" <v-...@microsoft.com>.
Hi Lisa,
Could you please run 'cordova plugin add C:\workspaces\lisa\TestPlugin' from cordova app root and see if it works?
-Sergey
From: Lisa Seacat DeLuca [mailto:ldeluca@us.ibm.com]
Sent: Friday, March 14, 2014 6:00 PM
To: Cordova Dev (dev@cordova.apache.org)
Subject: plugman create plugin on Windows issues
I've walked through the plugman plugin creation documentation and am having a few issues on Windows. I'd like to cleanup the docs and also get more experience creating a 3rd party plugin.
1. first I created my new plugin
C:\workspaces\lisa>plugman create --name TestPlugin --plugin_id com.ibm.cordova.plugin.test --plugin_version 0.1
2. then I added the android platform:
C:\workspaces\lisa\TestPlugin>plugman platform add --platform_name android
that is all okay, i see the android directory under the src directory.
3. Then I create a new cordova project to add my plugin to:
C:\workspaces\lisa>cordova create test com.ibm.test Test
Creating a new cordova project with name "Test" and id "com.ibm.test" at location "C:\workspaces\lisa\test"
C:\workspaces\lisa>cd test
C:\workspaces\lisa\test>cordova platform add android
Creating android project...
Creating Cordova project for the Android platform:
Path: platforms\android
Package: com.ibm.test
Name: Test
Android target: android-19
Copying template files...
Running: android update project --subprojects --path "platforms\android" --targe
t android-19 --library "CordovaLib"
Resolved location of library project to: C:\workspaces\bluemix\test\platforms\an
droid\CordovaLib
Updated and renamed default.properties to project.properties
Updated local.properties
No project name specified, using Activity name 'Test'.
If you wish to change it, edit the first line of build.xml.
Added file C:\workspaces\lisa\test\platforms\android\build.xml
Added file C:\workspaces\lisa\test\platforms\android\proguard-project.txt
Updated project.properties
Updated local.properties
No project name specified, using project folder name 'CordovaLib'.
If you wish to change it, edit the first line of build.xml.
Added file C:\workspaces\lisa\test\platforms\android\CordovaLib\build.xml
Added file C:\workspaces\lisa\test\platforms\android\CordovaLib\proguard-oject.txt
Project successfully created.
Generating config.xml from defaults for platform "android"
Preparing android project
4. Then I install the new plugin on the project I created:
THIS IS WHERE IT GETS INTERESTING:
C:\workspaces\lisa\test>plugman install --platform android --project C;\works
paces\lisa\test\www --plugin C:\workspaces\lisa\TestPlugin
Installing com.ibm.cordova.plugin.test (android)
ENOENT, no such file or directory 'C:\workspaces\lisa\test\C;\workspaces\lisa\test\www\AndroidManifest.xml'
*** failed so I try again, this time I see:
C:\workspaces\bluemix\test>plugman install --platform android --project C;\works
paces\lisa\test\www --plugin C:\workspaces\lisa\TestPlugin
Installing com.ibm.cordova.plugin.test (android)
Error during processing of action! Attempting to revert...
Uh oh!
"C:\workspaces\lisa\test\C;\workspaces\lisa\test\www\src\com\ibm\cordova\p
lugin\lisa\TestPlugin\TestPlugin.java"
already exists!
**** try to uninstall
C:\workspaces\lisa\test>plugman uninstall --platform android --project C;\wor
kspaces\lisa\test\www --plugin C:\workspaces\lisa\TestPlugin
Plugin "C:\workspaces\lisa\TestPlugin" not found. Already
uninstalled?
Any suggestions on what I may have done wrong would be appreciated. Thanks,
Lisa
Lisa Seacat DeLuca
Mobile Engineer | t: +415.787.4589 | ldeluca@apache.org<ma...@apache.org> | | ldeluca@us.ibm.com<ma...@us.ibm.com> | lisaseacat.com<http://www.lisaseacat.com/> | [follow @LisaSeacat on twitter] <www.twitter.com/LisaSeacat> | [follow Lisa Seacat DeLuca on linkedin] <http://www.linkedin.com/in/lisaseacat>