Prerequisites:
- Mecurial (http://www.selenic.com/mercurial/wiki/index.cgi/Mercurial)
- Ant 1.7.0 or higher
- JDK 1.5 or higher
- Python
- Open the script
- change the antpath variable to where you have ant installed
- run the script
download script
#! /usr/bin/python
import os
# set ant path here
antpath = "/home/alley/app/ant1.7.0"
hgpull = "hg pull -u"
hgclone = "hg clone http://hg.netbeans.org/main"
if(os.path.isdir("netbeans"):
os.rmdir("netbeans")
if(os.path.isdir("main")):
os.chdir("main")
os.system(hgpull)
else:
os.system(hgclone)
os.chdir("main")
os.putenv("ANT_OPTS", "-Xmx196m")
f = open("nbbuild/user.build.properties", "w")
f.write("build.compiler=extJavac\n")
f.write("javac.compilerargs=-J-Xmx512m")
f.close()
os.system(antpath + "/bin/ant -f nbbuild/build.xml")
os.system("cp -R nbbuild/netbeans " + os.getcdw())
os.system(antpath + "/bin/ant -f nbbuild/build.xml clean")
No comments:
Post a Comment