Skip to main content

Dependencies in phoneME

4 replies [Last post]
ebresie
Offline
Joined: 2003-08-06

Hey guys, this may be a new SVN user question but...

As I was starting to pull stuff from the phoneME SVN repository, I did the usually incorrect thing of trying to pull just the CDC and got all the assorted branches, tags, etc. So I now realized, I have to only check out the trunks for the components that I need for development. But doing this for every component seemed unappealing.

From the JavaOne porting Technical Session, suggests to get the cdc and the tools components. But this seems to leave out a number of JSRs and other potential components.

This got me was wondering, what kind of dependencies are there for the assorted components?

Other than pulling the pre-packaged source code (which from what I've seen, seem a little dated and not bleeding edge - unless I'm looking in the wrong place), is there any easy way to do a single pull to get all these related components (their trunks not all the branches, etc)?

Would usage of Mercurial (after all OpenJDK is using it) or some other related build tool help in this context? Could a Hudson type build system be useful?

I am trying to do this within Netbeans which is also proving to be a little confusing.

Eric

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
terrencebarr
Offline
Joined: 2004-03-04

ebresie,

I think it is possible but may be significant work.

Note that you can use NetBeans to access the phoneME SVN repository, edit and analyze code, and run MIDlets on phoneME today. And when you want to build phoneME you can just drop into a command line and run 'make'. This approach gets you many of the benefits of using NetBeans with minimal effort.

That said, having the phoneME build process integrate with NetBeans would certainly be nice ... maybe a community effort?

-- Terrence

terrencebarr
Offline
Joined: 2004-03-04

ebresie,

I can answer some of this.

Have a look at the phoneME build guides on http://wiki.java.net/bin/view/Mobileandembedded

There you will find detailed instructions on how to check out and which components you need to check out depending on what functionality you want to enable. It's quite straightforward ... but there is no automatic dependency checking during checkout - you need to know what you will need.

I am not an expert in Mercurial but in any case a switch to Mercurial for phoneME is currently not planned since it requires a fair amount of effort and the environment needs to support it.

As for NetBeans: You cannot currently build phoneME from within NetBeans. NetBeans uses ant to control the build process and phoneME uses make. Of course, you can use NetBeans' svn feature to check out components ...

-- Terrence

ebresie
Offline
Joined: 2003-08-06

I may need to ask this in a Netbean forum somewhere, but since with Netbean you can also do C/C++, is it possible to do a combination of Java and C? Maybe have an ant task which makes a dependency call to a C/Makefile execution?

Or just have a dependency project from within Netbeans that calls the necessary C makefile?

I found an article on using C/C++ and Java together in Netbeans when working with JNI, so this leads me to think a C/C++ Netbean project would be possible.

Is it possible to load up the C portions in Netbean and configure it with the necessary makefile/.mk files? If so, how would Netbeans handle the makefile/.mk file dependencies?

Eric

ebresie
Offline
Joined: 2003-08-06

Disregard the single checkout question. I found the builds underneath the build directory with each periodic build being present instead of under the components directory as I thought.