github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

srizzo / code2code

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 4
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Wiki (8)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (2)
    • gh-pages
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

An eclipse plugin to generate source code files using known template engines — Read more

  cancel

http://srizzo.github.com/code2code/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

README 
srizzo (author)
Thu Jun 18 12:58:04 -0700 2009
commit  a6a494ef9086ca7075674658d3757483323f60b4
tree    29c43688055e9d36c5c26455849a74c11d08b773
parent  996715a8101b9c77a175afc66cf015855c279345
code2code /
name age
history
message
file .gitignore Thu May 28 19:38:30 -0700 2009 fixed version [srizzo]
file CHANGES Wed Jun 17 08:21:04 -0700 2009 bumped version to 0.9.2 [srizzo]
file README.markdown Thu Jun 18 12:58:04 -0700 2009 README [srizzo]
directory code2code.feature/ Wed Jun 17 08:21:04 -0700 2009 bumped version to 0.9.2 [srizzo]
directory code2code.tests/ Wed Jun 17 08:21:04 -0700 2009 bumped version to 0.9.2 [srizzo]
directory code2code/ Wed Jun 17 08:21:04 -0700 2009 bumped version to 0.9.2 [srizzo]
README.markdown

What it is

code2code is an eclipse plugin to generate source code from templates.

You can easily create your custom generators using known template engines: Groovy (JSP like), Freemarker or Velocity.

See it in action here.

Creating a Generator

The files:

HelloWorld.generator
  |-- templates
      |-- HelloWorldTemplate.txt.ftl
  |-- templates.ftl
  |-- params.ftl

Contents of HelloWorldTemplate.txt.ftl:

Hello ${name}!!!

Contents of params.ftl:

name=World

Contents of templates.ftl:

templates/HelloWorldTemplate.txt.ftl=src/destinationPath/HelloWorld.txt

Usage

Installing generators: just create a folder named "generators" at the root of your project, and place your generators there.

Running generators: The plugin adds a “Generate…” option to your project context menu (right-click menu). Run it, choose one of your installed generators, set its parameters, and the plugin will generate the files to the right place.

See it in action here: Quickly cruding with code2code plugin and VRaptor2.

Installation

Current version is 0.9.2 beta, tested against Eclipse Ganymede 3.4.2.

You can install it from the Update Site

Documentation

http://wiki.github.com/srizzo/code2code

Issues/Features

http://github.com/srizzo/code2code/issues

Generator Examples

http://github.com/srizzo/code2code-example-generators/downloads

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server