1.
What is Jostraca?
2.
What is code generation?
3.
How can I improve the performance of Jostraca?
4.
How can I use Jostraca with Ant?
5.
Do I have to put my templates under the GPL?
6.
How does Jostraca find the java/javac programs?
7.
How do I use jostraca in Windows batch files?
1. What is Jostraca?
Jostraca is a software development tool for source code generation.
Jostraca can help software developers to solve
many programming problems, not least that of time, by generating large amounts of source code automatically.
Jostraca facilitates code generation by providing a framework for merging source code templates
with meta data descriptions of the programming problem.
This process is similar to server page systems, such as Java Server Pages. However, Jostraca
provides an open environment so that developers can completely customise the
way in which code is produced and the way in which meta data is accessed. Although the Jostraca
system is written in Java, it allows any programming language to produce code
in any other programming language.
2. What is code generation?
Code generation is the process of automatically creating program source code from an external
description (meta data). Instead of
entering the program code by hand the developer provides instructions via a template
for producing code automatically.
This approach is used by many IDEs, especially for the production of graphical user interfaces.
Specialised systems also exist to help create databases and generic applications. Jostraca is
different from these solutions because it is totally general - you can create any type of source code
you want and you have total control over the results.
3. How can I improve the performance of Jostraca?
Read the tutorial Improving the Performace of Jostraca for some quick tips.
4. How can I use Jostraca with Ant?
Jostraca comes with an a predefined Ant task:
jostraca, which can be introduced using:
<taskdef name="jostraca" classname="org.jostraca.JostracaTask"
/>
Read the tutorial Using Jostraca with
Ant for more information. You can also review the list of
attributes in the reference documentation. Lars Grammel
contributed this feature.
5. Do I have to put my templates under the GPL?
No. Your templates belong to you. Jostraca is a tool for code
generation, but the generated code is the end product and does not
fall under the GPL. In fact, the default JostracaCodeWriters
provided with Jostraca are in the public domain, so that even they
are free to be used as you see fit. See the file format/LICENSE.txt
in the distribution. Send an email to info@jostraca.org if you have
any further questions about licensing.
6. How does Jostraca find the java/javac programs?
You will need to make sure that you put java and javac into your PATH
environment variable. The same applies to perl, python, ruby and
any other external compiler/executer.
7. How do I use jostraca in Windows batch files?
You need to use the call command, like this:
call jostraca template.jtm
This prevents your batch file from ending after the first execution
of Jostraca.
|