<platform>-win32</platform>This platform is used to build for Windows;
<platform>-wince</platform>This platform is used to build for Windows CE;
<platform>-winmo</platform>This platform is used to build for Windows Mobile Only;
<platform>-linux</platform>This platform is used to build for Linux x86 (Debian);
<platform>-linux_arm</platform>This platform is used to build for Linux ARM;
<platform>-applet</platform>Create the html file and a jar file with all dependencies
to run the app from a java-enabled browser (the input cannot be a jar file);
<platform>-ios</platform>This platform is used to build for IOS;
<platform>-android</platform>This platform is used to build for Android;
<platform>-all</platform>Single parameter to deploy to all supported platforms;
Options
<platform>/p</platfrom>Package the VM with the application;
<platform>/r</platform>Specify a registration key to be used to activate TotalCross when required;
<platform>/m</platform>Specifies a path to the mobileprovision and certificate store to deploy an ipa file for iOS;
<platform>/a</platform>Assigns the application id; can only be used for libraries or passing a .tcz file;
<platform>/autostart</platform>automatically starts the application after a boot is completed. Currently works for Android only;
<platform>/c</platform>Specify a command line to be passed to the application;
<platform>/i</platform>Install the file after generating it; platforms is a list of comma-separated platforms. Supports: android. E.G.: /i android;
<platform>/k</platform>Keep the .exe and other temporary files during wince generation;
<platform>/kn</platform>As /k, but does not create the cab files for WinCE;
<platform>/n</platform>Override the name of the tcz file with the given name;
<platform>/o</platform>Override the output folder with the given path (defaults to the current folder);
<platform>/t</platform>Just test the classes to see if there are any invalid references. Images are not converted, and nothing is written to disk;
<platform>/v</platform>Verbose output for information messages;
<platform>/w</platform>Waits for a key press if an error occurs;
<platform>/x</platform>Comma-separated list of class names that must be excluded (in a starts-with manner). E.G.: "/x com/framework/".
Build your app
To deploy your application you only need to use a maven execution template by passing the command:mvn package
To deploy by command line you need to be in the folder that contains the jar of your project and pass the parameters of tc.Deploy:
Argument for plataforms to deploy
-win32This argument is used to build for Windows;
-winceThis argument is used to build for Windows CE
-winmo This argument is used to build for Windows Mobile Only;
-linux This argument is used to build for Linux x86 (Debian);
-linux_arm This platform is used to build for Linux ARM;
-applet the html file and a jar file with all dependencies to run the app from a java-enabled browser (the input cannot be a jar file);
-iosThis argument is to build for iOS;
-androidThis argument is to build for Android;
-allSingle parameter to deploy to all supported platforms;
Options
/pPackage the VM with the application;
/rSpecify a registration key to be used to activate TotalCross when required;
/mSpecifies a path to the mobileprovision and certificate store to deploy an ipa file for iOS;
/aAssigns the application id; can only be used for libraries or passing a .tcz file;
/autostartautomatically starts the application after a boot is completed. Currently works for Android only;
/c Specify a command line to be passed to the application;
/iinstall the file after generating it; platforms is a list of comma-separated platforms. Supports: android. E.G.: /i android;
/kKeep the .exe and other temporary files during WinCE generation;
/knAs /k, but does not create the cab files for WinCE;
/n Override the name of the .tcz file with the given name;
/oOverride the output folder with the given path (defaults to the current folder);
/t Just test the classes to see if there are any invalid references. Images are not converted, and nothing is written to disk;
/vVerbose output for information messages;
/w Waits for a key press if an error occurs;
/xComma-separated list of class names that must be excluded (in a starts-with manner). E.G.: "/x com/framework/".
"%TOTALCROSS3_HOME%" is the folder where the TC SDK
HelloTC.jar is the .jar of project
Your apps
After packaging your application the files will be in the project_folder\target\install\
Problems with WinCE? If your Operational System is not Windows or it is Windows and has not Cabwiz program, try to add/kas first platform to in your pom.xml