Skip to content
This repository

Ceylon compiler (ceylonc: Java backend), Ceylon documentation generator (ceylond) and Ceylon ant tasks.

Octocat-spinner-32 .ceylon utf8 November 21, 2013
Octocat-spinner-32 .externalToolBuilders Array types now get their underlyingTpye set when their component typ… March 12, 2012
Octocat-spinner-32 bin Fixed #1567 On Windows using a BASH shell results in an error message… February 20, 2014
Octocat-spinner-32 doc Issue #882: Let's start some kind of documentation of the optimizatio… November 20, 2013
Octocat-spinner-32 langtools Fix #1577 April 08, 2014
Octocat-spinner-32 lib Updated JUnit jar to solve CMRTest compile error for once and for all January 16, 2014
Octocat-spinner-32 src ReflectionUtils: fix for #1609: RuntimeException while generating SDK… April 16, 2014
Octocat-spinner-32 test Fixed tests that failed because of the version change for all Ceylon … April 14, 2014
Octocat-spinner-32 .classpath Bumped version to 1.1.0 April 10, 2014
Octocat-spinner-32 .gitignore utf8 November 21, 2013
Octocat-spinner-32 .project .project: removed allSources since I still have no idea what that's for June 06, 2012
Octocat-spinner-32 299.md Add Java code and document discussing Issue #299 April 03, 2012
Octocat-spinner-32 LICENSE Adding GPLv2 + classpath exception license from OpenJDK November 16, 2011
Octocat-spinner-32 NOTICE Updated NOTICE for #500 July 31, 2012
Octocat-spinner-32 README.eclipse README.eclipse: fix #1497: add instructions to install ceylon-runtime January 29, 2014
Octocat-spinner-32 README.md README: update test directory name December 10, 2013
Octocat-spinner-32 README.tests Fixed README files June 07, 2011
Octocat-spinner-32 build.properties Updated JUnit jar to solve CMRTest compile error for once and for all January 16, 2014
Octocat-spinner-32 build.xml Minor fix with build failing for older Ant versions April 17, 2014
README.md

Ceylon compiler and tools

License

The content of this repository is released under the GPL v2 + Classpath Exception as provided in the LICENSE file that accompanied this code.

By submitting a "pull request" or otherwise contributing to this repository, you agree to license your contribution under the license mentioned above.

License terms for 3rd Party Works

This software uses a number of other works, the license terms of which are documented in the NOTICE file that accompanied this code.

Directory structure

  • bin - the Ceylon tools binaries
  • lib - compile/runtime dependencies
  • src - the Ceylon compiler backend sources
  • langtools - the OpenJDK Javac compiler sources
  • test - the Ceylon compiler backend unit tests

Build the compiler and tools

For setting up the development environment and compiling and building the distribution take a look at ceylon-dist.

If after having built the distribution you want to build and test the compiler return to ceylon-compiler and run

ant clean publish

To run the tests type

ant test

Note that some of the tests currently fail. See more info in README.tests.

Once built, the compiler lives in this jar:

~/.ceylon/repo/com/redhat/ceylon/compiler/java/X.Y.Z/com.redhat.ceylon.compiler.java-X.Y.Z.jar

If you want to build and run the Ceylon compiler in Eclipse then please see README.eclipse for setup instructions.

Running the compiler

For help on the usage of the ceylon compiler you can either type

ceylon help compile

or you can go to the online documentation for ceylon compile

Building the project on Mac with JDK7

1) Download JDK7: http://jdk7.java.net/download.html

2) Unpack .dmg

3) export JAVA_HOME

Skywalker:ceylon-compiler alesj$ export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_08.jdk/Contents/Home/

Skywalker:ceylon-compiler alesj$ java -version
java version "1.7.0_06-ea"
Java(TM) SE Runtime Environment (build 1.7.0_06-ea-b12)
Java HotSpot(TM) 64-Bit Server VM (build 23.2-b03, mixed mode)

4) Build it (ant clean publish)

publish:
    [copy] Copying 2 files to /Users/alesj/.ceylon/repo/com/redhat/ceylon/compiler/java/0.6
    [copy] Copying 2 files to /Users/alesj/.ceylon/repo/com/redhat/ceylon/ant/0.6

BUILD SUCCESSFUL

Something went wrong with that request. Please try again.