Closed GoogleCodeExporter closed 9 years ago
This is not a defect, its a suggestion but Google code issue tracker is very
simplist
Original comment by porfirio...@gmail.com
on 14 Mar 2008 at 7:59
Hi, and thanks for the input and thought you've put into this! I understand the
need to make sure build scripts are fast.
Eric Berry is in charge of the NetBeans plugin, which might address the speed
of compilation. In Ant, all of the classes
are recompiled because it is actually faster than only compiling classes that
have changed (Ant has to do dependency
analysis to do this correctly, which is quite slow)
The goal of the build script is to make building in 'debug' mode is fast.
The two slowest steps are using ProGuard and re-creating all the assets. The
build file only re-creates assets that have
changed since the last build. By default, ProGuard is only used on 'release'
mode. If either of these features aren't
working correctly for you, please let me know, and it will be tracked in this
Issue.
Building in 'debug' mode should only take a second or so. (Milpa is built in
debug mode and started in PulpCore Player
in less than a second.)
The 2 jar idea is noted, but not possible with the applet security permissions.
Original comment by brack...@gmail.com
on 14 Mar 2008 at 8:28
I see. What about only do retroweave on release mode?
If the programmer is compiling on java 5 or 6 don't need java 1.4 compatibility
to
quick run, so retroweave should only be done on release
also i am having some exceptions with proguard, later i will post them here
Original comment by porfirio...@gmail.com
on 14 Mar 2008 at 8:35
Sounds like a good idea, I'll change the script so that Retroweaver is only
used in release mode.
For a separate ProGuard problem, please post to the group or start a new Issue!
Original comment by brack...@gmail.com
on 14 Mar 2008 at 8:40
[deleted comment]
porfirioribeiro,
I'm working on getting a different project ready for the Netbeans Module. This
project will have a structure similar to these guidelines.
http://java.sun.com/blueprints/code/projectconventions.html
It'll look close to this (still a work in progress)
[project root]
main
###"production" code, assets and dependencies.
/lib
### if applet, the jars will be decompressed and included in the applet jar.
### if application, the jars will be included in the JNLP (for a later
implementation)
/src
/java
/assets
/web
/html
/css
/js
/WEB-INF
web.xml ### Incase anyone wants to put this into tomcat or another
jsp container.
### other sources could go here like beanshell or javascript scripts (if
you have scripting in your games/animations).
/test
/lib
/java
build.properties
build.xml ### This will be created by Netbeans, and will probably have 2
additional
targets - deploy-applet and deploy-application.
I don't know when I'll be able to finish this all, but for the first release I
hope
to have at least the project running with David's PulpCorePlayer in Netbeans
outside
of running it from Ant.
If you want to try the NBM here's the project url:
http://code.google.com/p/pulpcorenb/
Original comment by elbe...@gmail.com
on 15 Mar 2008 at 12:42
On second thought I'm going to leave in Retroweaver on by default for all
builds because 1) It's not much of a
bottleneck (less than a second or so) and 2) Many developers publish 'debug'
applets, it's better for PulpCore if
those applets can be viewed by people with Java 1.4.
Savvy developers can still disable Retroweaver by changing the condition in the
"init" target to this code:
<condition property="do.retroweaver">
<and>
<equals arg1="${pulpcore.build}" arg2="release" />
<equals arg1="${pulpcore.java.language}" arg2="1.5" />
</and>
</condition>
Original comment by brack...@gmail.com
on 15 Mar 2008 at 1:23
elberry:
You should make it like a Java Project, one thing i really miss is JavaDoc, and
ant
project is not easy to add javadocs
I am already using your module still lots need to be done, maybe some properties
panel were we can change some basic settings like pulpcore path, version etc, i
would
love to help, but i am not very good with nb modules.
brackeen:
I understand, and yes, easy for end developer to change :p, and thanks for the
snippet
Original comment by porfirio...@gmail.com
on 15 Mar 2008 at 10:02
Original issue reported on code.google.com by
porfirio...@gmail.com
on 14 Mar 2008 at 7:58