Monday, July 28, 2008

nbPython Milestone 5 is out

I have posted milestone 5. You can get it here(https://nbpython.dev.java.net/servlets/ProjectDocumentList?folderID=9641&expandFolder=9641&folderID=0)


Just a note, Milestone 5 has a completely new project system. so any project created before Milestone 5 will not open. My recomendation is that you create the project with a new name and then copy the files from the old source directory to the new source directory. Then everything will be ok.

Thanks,
Alley
http://nbpython.dev.java.net

Friday, July 18, 2008

Building netbeans with python

I was playing around with trying to automate the process of checking out and building my development netbeans. First I thought i would write a shell script. Thats when it hit me, Can I preform the whole process using python.
Prerequisites:
Steps:
  • Open the script
  • change the antpath variable to where you have ant installed
  • run the script
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")

Tuesday, July 15, 2008

nbPython demos have been posted to netbeans.tv

The nbpython m4.2 demo videos have been posted on netbeans.tv
These videos cover configuration, console, code generation and code templets

Thanks,
Alley

Sunday, July 13, 2008

nbpython M4.2 video part 2

I had to split the demo into two parts. Here is the second part of the demo below.
This covers the code generators and templates


nbpython M4.2 video part 1

I have published the first part of the nbpython m4 demo
It can be view below

Saturday, July 12, 2008

nbPython m4.2 released

We have released Milestone 4.2 of nbPython. With this release the console has been fixed. If you want to open the console select window-> Python console from the menu bar.

You can download the new release from https://nbpython.dev.java.net/servlets/ProjectDocumentList?folderID=9581&expandFolder=9581&folderID=0

I will publish a video shortly

Alley

Netbeans RCP shell scripts permissions

Sometimes when you are building an RCP application, You need to include some shell scripts. What i have found that if you are using Linux, the build zip command drops the executable permission off the scripts. Here is a simple way to fix that. In the Suites build.xml file override the build-zip command with this.

<target name="build-zip" depends="build,build-launchers" description="Builds a ZIP distribution of the suite, launchers, and selected modules from the platform.">
<mkdir dir="${dist.dir}"/>
<zip destfile="${dist.dir}/${app.name}.zip">
<zipfileset dir="${build.launcher.dir}/bin/" filemode="755" prefix="${app.name}/bin"/>
<zipfileset dir="${build.launcher.dir}/etc/" prefix="${app.name}/etc"/>
<zipfileset dir="${netbeans.dest.dir}" filemode="755" prefix="${app.name}">
<include name="**/lib/nbexec*"/>
</zipfileset>
<zipfileset dir="${netbeans.dest.dir}" prefix="${app.name}">
<and>
<not>
<filename name="**/lib/nbexec*"/>
</not>
<selector refid="zip.platform.included.files"/>
</and>
</zipfileset>
<!-- Yes, the doubled app.name is a bit ugly, but better than the alternative; cf. #66441: -->
<!-- added filemode to add executable permissions in the zip file -->
<zipfileset dir="${cluster}" prefix="${app.name}/${app.name}" filemode="755">
<exclude name="config/Modules/*.xml_hidden"/>
</zipfileset>
</zip>
</target>

nbPython has a console

I have finally got the python console working. As you can see in the picture, I can even run ipython as my interactive console.

More on this later
Thanks
Alley

Tuesday, July 8, 2008

Netbeans to support Python, It's offical

Today at EuroPython 2008, Ted Leung (Dynamic Languages & Tools Architect, Sun Microsystems) and Frank Wierzbicki (Jython Project Lead, Sun Microsystems) announced that the NetBeans IDE will be supporting Python and Jython in future releases. At the core of bringing Python/Jython support to the NetBeans IDE, is the formation of the NBPython Project, led by community member Allan Davis.

For more information, visit the NBPython Project page and request membership to the project. For developers wishing to contribute, sign up for the development mailing list.

In addition, the Sun Developer Network (SDN) is also launching the Python Developer Center and is planning to feature Python/Jython technologies in future Sun Tech Days events, a 15-city world tour designed to educate developers in local markets on various technologies. Python runtime support is already available in OpenSolaris 2008.05, via the pkg.opensolaris.org repository, as well as with Cool Stack on Solaris 10-based systems.

For More Information:

NBPython Project Page
Sun's Python Developer Center

Interview: Allan Davis, nbPython Developer

Ted Leung's Blog
Frank Wierzbicki's Blog

nbPython Milestone 4.1 Released

Sorry guys,
I had to release a patch to nbPython. I could not leave it hanging like that. I descovered a major bug after i uploaded last night. The Parser was going haywire. I have fixed that and have now released Milestone 4.1
It can be found at https://nbpython.dev.java.net/servlets/ProjectDocumentList?folderID=9516&expandFolder=9516&folderID=0

Alley
Lead Developer, nbPython
http://nbPython.dev.java.net

nbPython M4 is released

I have posted milestone 4 of nbPython. It can be downloaded at http://nbpython.dev.java.net
Please note that the nbm's can only be installed in 07/07/2008 daily build or later.
Some of the new features include are:
  • class and method generation (alt + insert)
  • Interactive console (window->other->python console)
  • Improved syntax highlighting
Alley
Lead Developer, nbPython
https://nbpython.dev.java.net

Monday, July 7, 2008

6.5 M1 is out

Netbeans 6.5 Milestone 1 is out. it can be downloaded at http://bits.netbeans.org/download/6.5/m1/
New things include PHP support, as well as other great enhancements

to see Romen demo the php editor check out this link http://www.netbeans.org/kb/docs/php/php-editor-screencast.html?intcmp=925655

Stay tuned I will have an nbPython update very soon

Thanks,
Alley, Lead Developer
http://nbPython.dev.java.net