marat-gainullin / platypus-js

Apache License 2.0
9 stars 9 forks source link

HowTo Build PlatypusJS #67

Closed Level0r0s closed 8 years ago

Level0r0s commented 8 years ago

Exist HowTo or screencast to Build PlatypusJS ?

marat-gainullin commented 8 years ago

Not yet.

There is hudson CI configuration (hudsonci/config.xml) that invokes ant to build all Platypus.js parts, including installation packs. You may look there.

Also, there are NetBeans projects "application/src/group", "designer" and Eclipse project "web-client/src/platypus". If you build them and perform two extra steps (copy with overwrite folder " web-client/src/pwc-external" to folder where platypus browser client is linked by the gwt and copy the result to folder "application/bin/pwc"), you will get a fresh version of Platypus.js without installation packs.

Level0r0s commented 8 years ago

HowTo Build all Java Class to Generate fresh version of Platypus.js

Download source code https://github.com/altsoft/PlatypusJS

Estructure Foltder

application => source files javascript Platypus Platform __lib > lib jar files used by Runtime Platypus Platform __src > files java responsable Bridge JavaScript Platypus Platform (build in NetBeans) ___group > All NetBeans Group ___lib > Java class (use no identificate)
___designer > IDE Design vinculate in NetBeans
___hudsonci
___installer > Java Class Create instalator
___web_client > Eclipse Project
___src
___platypus
___src > Java class responsable to create javascript object = gwt
___pwc_external
  1. Invokes Ant to build all Platypus.js including installation packs 1.1 Hudson CI configuration (hudsonci/config.xml) (opcional)
  2. NetBeans projects "application/src/group", "designer"
  3. Eclipse project "web-client/src/platypus".
  4. After you build them 4.1 Copy with overwrite folder " web-client/src/pwc-external" to folder where platypus browser client is linked by the gwt 4.2 Copy the result to folder "application/bin/pwc"

Now you will get a fresh version of Platypus.js without installation packs.

estrutura.txt

marat-gainullin commented 8 years ago

build-instructions.md created in root folder. See https://github.com/altsoft/PlatypusJS/blob/master/build-instructions.md

Level0r0s commented 8 years ago

Please check list build-instructions.md

3 . Type ant -f ./designer/build.xml clean build -Dnbplatform.default.harness.dir=/home/your-home-dir/your-netbeans-dir/harness/ -Dnbplatform.default.netbeans.dest.dir=/home/your-home-dir/your-netbeans-dir/ on the command line. This will build Platypus IDE and will put it to ./designer/build folder.

Is equal START destination folder ?

/home/your-home-dir/your-netbeans-dir/harness/
/home/your-home-dir/your-netbeans-dir/

ERRO OCURRED:

D:\PlatypusJS>ant -f ./designer/run.xml run
Buildfile: D:\PlatypusJS\designer\run.xml

download:

BUILD FAILED
D:\PlatypusJS\designer\run.xml:7: The following error occurred while executing this line:
D:\PlatypusJS\designer\nbproject\build-impl.xml:42: Cannot find NetBeans build harness.
Check that nbplatform.default.netbeans.dest.dir and nbplatform.default.harness.dir are defined.
On a developer machine these are normally defined in ${user.properties.file}=${netbeans.user}/build.properties
but for automated builds you should pass these properties to Ant explicitly.
 -Dnbplatform.default.harness.dir=/home/your-home-dir/your-netbeans-dir/harness/ -Dnbplatform.default.netbeans.dest.dir=
/home/your-home-dir/your-netbeans-dir/

Total time: 0 seconds

files log log_build_1.txt log_build_2.txt log_build_3.txt

jskonst commented 8 years ago

/home/your-home-dir/your-netbeans-dir/ may be the same, so in you case it may be: ant -f ./designer/run.xml run -Dnbplatform.default.harness.dir=D:\netbeans-8.1\harness -Dnbplatform.default.netbeans.dest.dir=D:\netbeans-8.1

Level0r0s commented 8 years ago

Yes .. resolved ant -f ./designer/run.xml run -Dnbplatform.default.harness.dir=%netbeans%/harness/ -Dnbplatform.default.netbeans.dest.dir=%netbeans%/

tanks