Closed bgould closed 9 years ago
Thanks!
Looks good to me, but I notified the person asking on google groups so they can make sure it works for them.
Also, don't worry about the travis failure. It's not your fault. Fixing that is complicated by the fact that it only seems to be reproducible on travis itself.
The symlink for the 'src' directory in my original patch was incorrect... I had it pointing to the directory with the compiled .class files.
Updated so that it points to the correct directory with the *.java files. This makes it so that when you click on a compiled class from classpath.jar in Eclipse, it brings up a read-only view of that source code.
Someone on the Google Groups site asked how to set up an Eclipse project with Avian classpath. This patch creates the descriptor that you can you use to do that at
$(build)/eclipse/jdk/avian.ee
. The descriptor includes the Avian version, platform, architecture, and build options to allow for multiple versions to exist side by side. Users can import the descriptor into Eclipse via:Once the descriptor is imported, Avian can be used just like any other JVM installation for Eclipse projects. Personally I use this in conjunction with Eclim to gain code completion for Avian in vim.
The new targets also create symlinks to loosely mimic OpenJDK's filenames and folder layout:
Annoyingly, Eclipse for some reason expects this layout to exist even though the descriptor format has required parameters for specifying these locations. I suppose that other software may look for this "standard" layout in a JVM installation so it may be generally useful.
These artifacts are only built if the platform is one of
windows
,linux
, ormacosx
. The symlinks might not actually work at all on Windows, I'm not sure how things like cygwin/msys handle that and I do not have the means to test it. If they do not work a fallback for windows might be to actually copy the files instead of symlinking.I realize this can be done outside of the makefile but it seemed useful to put it here to gain access to the information about the build location, platform, architecture, and other build options.
For the record, this contribution is my original work and is released under the same license that Avian uses, found in the license.txt file in this repository.