All our tools should reside into the package following this format corsaair.tools.{projectname}
for ex:
package corsaair.tools.projectormake
{
}
Inside this package we should follow standard naming for common things
main class for the program is App
common classes or properties
strings for string resources
config for configuration options
version for the program version
for ex:
package corsaair.tools.projectormake
{
public class App
{
public var strings:Object;
public var config:Object;
public var version:String;
public function App()
{
super();
}
}
}
the program's version should be configurable from the build
using a version.properties
using include
configuring the program at initialisation time
for ex:
package corsaair.tools.projectormake
{
public class App
{
private var _version:String;
public function App( version:String = "0.0.0" )
{
super();
_version = version;
}
public function get version():String { return _version; }
}
}
Version file ex:
version.properties
version.major=1
version.minor=2
version.patch=3
And bootstraping the app ex:
/src/projectormake.as
import corsaair.tools.projectormake.App;
var version:Object = {};
include "version.properties";
var versionstr:String = version.major + "." + version.minor + "." + version.patch;
var app:App = new App( versionstr );
app.main();
Few rules
corsaair.tools.{projectname}
for ex:
App
strings
for string resourcesconfig
for configuration optionsversion
for the program versionfor ex:
version.properties
include
for ex:
Version file ex:
version.properties
And bootstraping the app ex:
/src/projectormake.as