| Author |
Message |
|
rapit
Member
Joined: Fri Jan 23, 2009 10:52 am Posts: 34 Location: Kraków, Poland
|
 Re: Version number plugin
Nice plugin! otakurzo wrote: Nice job!
Currently, the plugin saves the project and path path where Version.as will created, this is stored in the plugin setting. But if I change the project location that no longer serve me and lose the version store.
I propose that there should be a file in the root of the project, by example ".version", and save in the configuration for the version of project.
* I can not write well in English, please excuse if not understood. Confirmed, moreover, after changing project location FD 3.3.2 RTM (version plugin) throws exception. I suggest to use 'obj' folder for any config/version data files.
_________________ English... still learning ;)
|
| Wed Jan 19, 2011 1:52 pm |
|
 |
|
smival
Member
Joined: Tue Jan 18, 2011 4:20 am Posts: 2
|
 Re: Version number plugin
lamenace wrote: smival wrote: Hi! 1) how I Can change app config location or filename for version increment?! Test movie command dont work with ur plugin C:\flex_sdk_3\bin\adl.exe;[app_config_name].xml bin but other apps settings from XML work! 2) how I can add updater config file for increment? file example ( more info about this) Quote: <update xmlns="http://ns.adobe.com/air/framework/update/description/1.0"> <version>2.0</version> <url>http://localhost/app.air</url> <description></description> </update> string for increment - <version>2.0</version> so weird i didn't understood anything :/ sorry, this post for AIR projects only
|
| Thu Jan 20, 2011 5:16 am |
|
 |
|
tiagojanz
Member
Joined: Tue Jun 05, 2007 9:26 am Posts: 52
|
 Re: Version number plugin
Compiled under FD4 and its working OK.
Nice job!!! it should be default in FD4.
|
| Thu Jan 20, 2011 11:09 am |
|
 |
|
lamenace
Member
Joined: Wed Mar 03, 2010 1:44 pm Posts: 72 Location: LYON, FRANCE
|
 Re: Version number plugin
tiagojanz wrote: Compiled under FD4 and its working OK.
Nice job!!! it should be default in FD4. still running FD3 here people who want to change how plugin manage conf can modify source code, its on googlecode
|
| Thu Jan 20, 2011 11:16 am |
|
 |
|
leejk
Member
Joined: Tue Nov 09, 2010 7:15 pm Posts: 14
|
 Re: Version number plugin
Hi,
I have it working fine here, except for when I try and use Version.as in my code. I've imported the package it's in and used it this way:
buildLabelField.setText(buildLabel + " " + Version.Major + "." + Version.Minor + "." + Version.Build);
What I can't figure out though is why the compiler is throwing the error "Error: Access of undefined property Version."
What's up?
|
| Thu Jan 20, 2011 3:48 pm |
|
 |
|
lamenace
Member
Joined: Wed Mar 03, 2010 1:44 pm Posts: 72 Location: LYON, FRANCE
|
 Re: Version number plugin
leejk wrote: Hi,
I have it working fine here, except for when I try and use Version.as in my code. I've imported the package it's in and used it this way:
buildLabelField.setText(buildLabel + " " + Version.Major + "." + Version.Minor + "." + Version.Build);
What I can't figure out though is why the compiler is throwing the error "Error: Access of undefined property Version."
What's up? maybe wrong conf in your project classpath
|
| Thu Jan 20, 2011 3:59 pm |
|
 |
|
lamenace
Member
Joined: Wed Mar 03, 2010 1:44 pm Posts: 72 Location: LYON, FRANCE
|
 Re: Version number plugin
rapit wrote: Nice plugin! otakurzo wrote: Nice job!
Currently, the plugin saves the project and path path where Version.as will created, this is stored in the plugin setting. But if I change the project location that no longer serve me and lose the version store.
I propose that there should be a file in the root of the project, by example ".version", and save in the configuration for the version of project.
* I can not write well in English, please excuse if not understood. Confirmed, moreover, after changing project location FD 3.3.2 RTM (version plugin) throws exception. I suggest to use 'obj' folder for any config/version data files. v2 should do the job now
|
| Thu Feb 03, 2011 10:08 am |
|
 |
|
otakurzo
Member
Joined: Tue Jan 27, 2009 9:21 pm Posts: 5
|
 Re: Version number plugin
thanks hmmm and if I want change the package of Version.as, what should I do?
|
| Thu Feb 03, 2011 11:18 am |
|
 |
|
lamenace
Member
Joined: Wed Mar 03, 2010 1:44 pm Posts: 72 Location: LYON, FRANCE
|
 Re: Version number plugin
otakurzo wrote: thanks hmmm and if I want change the package of Version.as, what should I do? change package attribute in obj/Version.xml
|
| Thu Feb 03, 2011 1:20 pm |
|
 |
|
otakurzo
Member
Joined: Tue Jan 27, 2009 9:21 pm Posts: 5
|
 Re: Version number plugin
lamenace wrote: otakurzo wrote: thanks hmmm and if I want change the package of Version.as, what should I do? change package attribute in obj/Version.xml Does not work. I change the package in Version.as and obj/Version.xml (com.dominio.projects.awesome), then I change the version into the panel and this I deleted the package. This project was working with the previous version. Be why?
|
| Thu Feb 03, 2011 7:26 pm |
|
 |
|
rapit
Member
Joined: Fri Jan 23, 2009 10:52 am Posts: 34 Location: Kraków, Poland
|
 Re: Version number plugin
Cool! Yesterday i played a bit with your source and do something similiar to v2.0 (with obj/version.bin - where settings are stored) but imo version with xml is better  Two suggestions (from my version  : - Could you add the default package name into plugin settings (as you add default class name)? (Default package name used as relative path from src folder for version.as ). - Could you add a button to context menu (over project name) to enable/disable tracking? (tracking status stored in version.xml) (My scenario was: First time -> ask, Y: ask for package, start trackng; N: store verson.xml with false; Context button clicked: tracked before? -> Y:toggle tracking state; N: ask for package & start tracking; In this scenario ignored project table is not necesary and shared project remaind tracking status) After build v2 from svn for FD4: - start tracking doesn't create Version.as (first build do this, I can't include version.as, I must do one build to create it), - switching to other project start tracking without any question, If you need i can send you my version (send pm) but... I'm not a c# programmer  English, still learning... 
_________________ English... still learning ;)
|
| Thu Feb 03, 2011 9:40 pm |
|
 |
|
lamenace
Member
Joined: Wed Mar 03, 2010 1:44 pm Posts: 72 Location: LYON, FRANCE
|
 Re: Version number plugin
otakurzo wrote: lamenace wrote: otakurzo wrote: thanks hmmm and if I want change the package of Version.as, what should I do? change package attribute in obj/Version.xml Does not work. I change the package in Version.as and obj/Version.xml (com.dominio.projects.awesome), then I change the version into the panel and this I deleted the package. This project was working with the previous version. Be why? yeah i submited it to quickly, try new one
|
| Fri Feb 04, 2011 9:36 am |
|
 |
|
taratoga
Member
Joined: Wed May 11, 2011 7:20 pm Posts: 2
|
 Re: Version number plugin and AS 2.0
Hello,
very fine plugin...
I use it for my AS 2.0 Projects. Since last change it isnt possible to use the static public variables in the project.
1. Maybe the statement is wrong: static public var..... (better: public static var.....) from the point of view of an AS 2.0 coder.... 2. Now on each build the version.as is written new. In the older version I added some public vars to the code and it was possible to use it in the project everywhere.(Global var)
Hope it is understandble what I wrote here.
Kind regard
taratoga
|
| Wed May 11, 2011 7:33 pm |
|
 |
|
lamenace
Member
Joined: Wed Mar 03, 2010 1:44 pm Posts: 72 Location: LYON, FRANCE
|
 Re: Version number plugin and AS 2.0
taratoga wrote: Hello,
very fine plugin...
I use it for my AS 2.0 Projects. Since last change it isnt possible to use the static public variables in the project.
1. Maybe the statement is wrong: static public var..... (better: public static var.....) from the point of view of an AS 2.0 coder.... 2. Now on each build the version.as is written new. In the older version I added some public vars to the code and it was possible to use it in the project everywhere.(Global var)
Hope it is understandble what I wrote here.
Kind regard
taratoga try latest build
|
| Thu May 12, 2011 7:36 am |
|
 |
|
taratoga
Member
Joined: Wed May 11, 2011 7:20 pm Posts: 2
|
 Re: Version number plugin
Thank you..
Everything is fine now...
Kind regards taratoga
|
| Fri May 13, 2011 11:00 am |
|
|