<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>TechJava&#187; TechJava &#8211; Articles on tools</title>
	<atom:link href="http://www.techjava.de/topics/category/tools/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.techjava.de</link>
	<description>Journal on Java Technology</description>
	<lastBuildDate>Thu, 17 Jun 2010 10:41:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Extending Xtext Build Participants</title>
		<link>http://www.techjava.de/topics/2010/06/extending-xtext-build-participants/</link>
		<comments>http://www.techjava.de/topics/2010/06/extending-xtext-build-participants/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 10:41:21 +0000</pubDate>
		<dc:creator>Simon Zambrovski</dc:creator>
				<category><![CDATA[eclipse]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[mdsd]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[builder]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[oaw]]></category>
		<category><![CDATA[xpand]]></category>
		<category><![CDATA[xtend]]></category>
		<category><![CDATA[xtext]]></category>

		<guid isPermaLink="false">http://www.techjava.de/?p=674</guid>
		<description><![CDATA[
You&#8217;ve definitely heard about 
Xtext, the famous text modeling framework, 
community award winner . We are all looking forward to the new project management wonder: the 
release of Helios, upcoming on June the 23rd, which will include Xtext 1.0.0. In this article, I want do describe some aspects of integration of Xtext-based languages into IDE.
Introduction
Creating [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.techjava.de/wp-content/uploads/builder_hands.jpg" alt="" title="builder_hands" width="150" height="99" style="margin:10px; float: right;" /><br />
You&#8217;ve definitely heard about 
<a  href="http://www.eclipse.org/Xtext/" onclick="javascript:pageTracker._trackPageview('/external/www.eclipse.org/Xtext/');" >Xtext</a>, the famous text modeling framework, 
<a  href="http://www.eclipse.org/org/press-release/20100322_awardswinners.php" onclick="javascript:pageTracker._trackPageview('/external/www.eclipse.org/org/press-release/20100322_awardswinners.php');" >community award winner </a>. We are all looking forward to the new project management wonder: the 
<a  href="http://www.eclipse.org/helios/" onclick="javascript:pageTracker._trackPageview('/external/www.eclipse.org/helios/');" >release of Helios</a>, upcoming on June the 23rd, which will include Xtext 1.0.0. In this article, I want do describe some aspects of integration of Xtext-based languages into IDE.<span id="more-674"></span></p>
<h3>Introduction</h3>
<p>Creating your own domain-specific textual languages in Xtext is really easy, and the authors in 
<a  href="http://xtext.itemis.com/" onclick="javascript:pageTracker._trackPageview('/external/xtext.itemis.com/');" >Northern Germany</a> are doing a good job to make it even easier. Once you have a language, you want to process it and this means usually to transform your model into another representation. The facility responsible for this transformation is called generator and consists of a bunch of transformation templates (e.G. XPand) and some code executing them. On some event, the model is read in and the transformations are applied to produce code. Currently, there are two ways of triggering the transformation: you can put the calling infrastructure in a Modeling Workflow Engine file, which is a kind of batch script or you can write a build-participant, which react on the changes in the model. In this article I want to describe my experiences with the builder approach.</p>
<h3>Examining initial builder</h3>
<p>The base idea behind the builder approach is the fact, that Xtext provides an project builder, which watches for all Xtext resource changes (Xtext-based DSL models) and notifies the so-called XtextBuilderParticipants. These are registered using Eclipse extension point <code>org.eclipse.xtext.builder.participant</code> and implement the <code>IXtextBuilderParticipant</code> interface:</p>
<pre class="brush: java;">
...
public interface IXtextBuilderParticipant {
    void build(IBuildContext context, IProgressMonitor monitor) throws CoreException;
}

public interface IBuildContext {
    IProject getBuiltProject();
    List&lt;IResourceDescription.Delta&gt; getDeltas();
    ResourceSet getResourceSet();
    void needRebuild();
}
</pre>
<p>In order not to start completely from scratch, let us examine the builder provided in the Domain-Model-Example, delivered with Xtext. In the build method the example builder processes as follows:</p>
<ul>
<li>checks that the project is a Java project</li>
<li>finds the generation folder</li>
<li>creates an Output</li>
<li>creates an Outlet and registers it in the Output</li>
<li>registers a post-processor managing Java imports on the outlet</li>
<li>creates the Xpand execution context</li>
<li>registers the Java Beans version of the metamodel</li>
<li>processes the changes and analyses if the files have to be deleted or not prior re-generation</li>
<li>for all changed model elements re-generates</li>
</ul>
<p>Quite a lot of tasks, so there is a good reason, why 
<a  href="http://wiki.eclipse.org/Modeling_Workflow_Engine_%28MWE%29" onclick="javascript:pageTracker._trackPageview('/external/wiki.eclipse.org/Modeling_Workflow_Engine_%28MWE%29');" >MWE</a> scripts are used for generation. </p>
<h3>Using Project natures</h3>
<p>The first improvement I created for the builder is the ability to distinguish DSLs. The problem of triggering <strong>all</strong> XtextBuildParticipants on the change of <strong>any</strong> Xtext-based resource is that the entire Workspace gets re-generated. In my scenario, we used three DSLs and a random change caused three builders to run, even if the change has been made in another project of workspace. In order to solve this problem I used the standard Eclipse way to distinguish projects: Project Natures. </p>
<p>The nature I created is used as a marker for the builder and is emtpy:</p>
<pre class="brush: java;">
public class UiNature implements IProjectNature {
	public static final String NATURE_ID = &quot;de.techjava.dsl.uiNature&quot;;
	private IProject project;

	public void configure() throws CoreException {
        }

	public void deconfigure() throws CoreException {
	}
	public IProject getProject() {
		return project;
	}
	public void setProject(IProject project) {
		this.project = project;
	}
}
</pre>
<p>Don&#8217;t forget to register it in the plugin.xml:</p>
<pre class="brush: xml;">
   &lt;extension point=&quot;org.eclipse.core.resources.natures&quot;
         id=&quot;de.techjava.dsl.uiNature&quot;
         name=&quot;User Interface DSL Project Nature&quot;&gt;
      &lt;runtime&gt;
         &lt;run class=&quot;de.techjava.dsl.userinterface.builder.UiNature&quot; /&gt;
      &lt;/runtime&gt;
   &lt;/extension&gt;
</pre>
<p>As the first line in my builder I check the presence of the nature in the current project and stop building if the nature is not present:</p>
<pre class="brush: java;">
if (!context.getBuiltProject().hasNature(UiNature.NATURE_ID)) {
	// skip projects without UI DSL nature
	return;
}
</pre>
<p>Now, what is missing is the ability to add and remove the nature to/from the project. I liked the way how Xpand/Xtend Natures are configured (using toggle action in configure menu of the project pop-up menu). What you need is a ToggleAction that can be switched on, if the nature is not present and switched off, if the nature is installed. </p>
<pre class="brush: java;">
public class ToggleNatureAction implements IObjectActionDelegate {
	private ISelection selection;
	@SuppressWarnings(&quot;unchecked&quot;)
	public void run(IAction action) {
		if (selection instanceof IStructuredSelection) {
			for (Iterator it = ((IStructuredSelection) selection).iterator(); it.hasNext();) {
				Object element = it.next();
				IProject project = null;
				if (element instanceof IProject) {
					project = (IProject) element;
				} else if (element instanceof IAdaptable) {
					project = (IProject) ((IAdaptable) element).getAdapter(IProject.class);
				}
				if (project != null) {
					toggleNature(project);
				}
			}
		}
	}

	public void selectionChanged(IAction action, ISelection selection) {
		this.selection = selection;
	}

	public void setActivePart(IAction action, IWorkbenchPart targetPart) {
	}

	/**
	 * Toggles sample nature on a project
	 * @param project to have sample nature added or removed
	 */
	private void toggleNature(IProject project) {
	// implemetation of toggle nature ...
	}
}
</pre>
<p>In order to make an action to a toggle-action the 
<a  href="http://wiki.eclipse.org/index.php/Platform_Command_Framework" onclick="javascript:pageTracker._trackPageview('/external/wiki.eclipse.org/index.php/Platform_Command_Framework');" >Eclipse Command Framework</a>, 
<a  href="http://wiki.eclipse.org/Menu_Contributions" onclick="javascript:pageTracker._trackPageview('/external/wiki.eclipse.org/Menu_Contributions');" >Object Contributions</a> and the 
<a  href="http://wiki.eclipse.org/Command_Core_Expressions" onclick="javascript:pageTracker._trackPageview('/external/wiki.eclipse.org/Command_Core_Expressions');" >Command Core Expressions</a> are needed. The idea is to register two actions as object contributions on the IProject using the <code>org.eclipse.ui.popupMenus</code> extension point and define visibility of those to be complement to each other (if one is visible the other is not) based on the object state, which is the presence of a project nature. The actions used point to the same implementation class but have different labels. The menu path to pop-up menu <strong>Project &gt; Configure</strong> is <strong>org.eclipse.ui.projectConfigure/additions</strong>. The visibility is defined based on the objectState:</p>
<pre class="brush: xml;">
  &lt;extension point=&quot;org.eclipse.ui.popupMenus&quot;&gt;
      &lt;objectContribution adaptable=&quot;true&quot;
            id=&quot;de.techjava.dsl.userinterface.ui.addNature&quot;
            objectClass=&quot;org.eclipse.core.resources.IProject&quot;&gt;
         &lt;action
               class=&quot;de.techjava.dsl.userinterface.ui.action.ToggleNatureAction&quot;
               id=&quot;de.techjava.dsl.userinterface.ui.AddNatureAction&quot;
               label=&quot;Add User Interface DSL Nature&quot;
               menubarPath=&quot;org.eclipse.ui.projectConfigure/additions&quot;&gt;
         &lt;/action&gt;
         &lt;visibility&gt;
            &lt;not&gt;&lt;objectState name=&quot;nature&quot; value=&quot;de.techjava.dsl.uiNature&quot; /&gt;&lt;/not&gt;
         &lt;/visibility&gt;
      &lt;/objectContribution&gt;
      &lt;objectContribution adaptable=&quot;true&quot;
            id=&quot;de.techjava.dsl.userinterface.ui.removeNature&quot;
            objectClass=&quot;org.eclipse.core.resources.IProject&quot;&gt;
         &lt;action
               class=&quot;de.techjava.dsl.userinterface.ui.action.ToggleNatureAction&quot;
               id=&quot;de.techjava.dsl.userinterface.ui.AddNatureAction&quot;
               label=&quot;Remove User Interface DSL Nature&quot;
               menubarPath=&quot;org.eclipse.ui.projectConfigure/additions&quot;&gt;
         &lt;/action&gt;
         &lt;visibility&gt;
            &lt;objectState name=&quot;nature&quot; value=&quot;de.techjava.dsl.uiNature&quot; /&gt;
         &lt;/visibility&gt;
      &lt;/objectContribution&gt;
   &lt;/extension&gt;
</pre>
<p>Please note, that the nature is implemented and registered inside of the generator project and the toggle action is implemented in the UI project. Finally, the code of the toggleNature method, which is the standard code for the project nature installation and removal:</p>
<pre class="brush: java;">
...
	IProjectDescription description = project.getDescription();
	String[] natures = description.getNatureIds();

	// remove the nature
	for (int i = 0; i &lt; natures.length; ++i) {
		// if nature exists
		if (NATURE_ID.equals(natures[i])) {
			// Remove the nature
			String[] newNatures = new String[natures.length - 1];
			System.arraycopy(natures, 0, newNatures, 0, i);
			System.arraycopy(natures, i + 1, newNatures, i, natures.length - i - 1);
			description.setNatureIds(newNatures);
			project.setDescription(description, null);
			return;
		}
	}

	// Add the nature
	String[] newNatures = new String[natures.length + 1];
	System.arraycopy(natures, 0, newNatures, 0, natures.length);
	newNatures[natures.length] = NATURE_ID;
	description.setNatureIds(newNatures);
	project.setDescription(description, null);
...
</pre>
<p>That&#8217;s it, run and right-click on the Project and then go to the Configure Menu (pretty low in the pop-up) and you will see the result:<br />
<img src="http://www.techjava.de/wp-content/uploads/both-features.png" alt="" title="both-features" width="507" height="145" style="margin:10px; float:left" /></p>
<h3>Parameterizing generator</h3>
<p>Domain-specific languages should cover only the real requirements and incorporate the specific decision made in the project. So far the theory, but in fact it is a trade-off and a compromise, what is a part of the language and what is too specific to be covered. The same holds for the generator: on the one hand you want the generator to solve exactly your problem, on the other hand you want to make it generic enough to cover a class of similar problems. </p>
<p>I faced the problem of using the generator for two teams in a big project, where the langage could be reused, but the generation infrastructure need to be slightly modified. For example, the information about the generation target folder, package prefix and the fact which artifact should be generated differred between the teams. In the same time the teams were able to agree on the same language. In order not to develop two generators, I decided to parameterize the generator and the templates. </p>
<p>The Xpand2/Xtend developers provided a way of parameterization of the templates using the so-called Global Variables, using the GLOBALVAR keyword. My favorite way of using it is to create a cached extension for reading the variable:</p>
<pre class="brush: bash;">
/*
 * Retrieves the boolean value of the global variable set from outside of the template
 */
cached Boolean generateService() :
    GLOBALVAR generateService == &quot;true&quot;
;
</pre>
<p>In order to set global variables from the build participant the XPand execution context constructor takes a <code>Map&lt;String, Variable&gt;</code> argument. The nice story about the global variables, that you can provide any objects as values. So the advantage over the usage of MWE workflow with property files read-in during processing is the big flexibility in providing the object-graphs or even statefull objects as global variable values. A good example of usage of global variable is provided in Domain-Example with Java Import Tool:</p>
<pre class="brush: java; highlight: [4,5];">
JavaImportsTool importsTool = new JavaImportsTool();
...
ctx = new XpandExecutionContextImpl(output, null,
    Collections.singletonMap(JavaImportsTool.VAR_NAME,
    new Variable(JavaImportsTool.VAR_NAME,importsTool)),
    null, null);
...
</pre>
<p>In the same time it is important to be able to load simple properties from file in the generation project. For example you could implement your own ModelProperties container, which reads properties from the file located in the generation project. For example:</p>
<pre class="brush: java;">
public class ModelProperties extends Properties {
	/**
	 * Indicates that no timestamp is available
	 */
	private static final long NO_TIMESTAMP = -1;

	private long lastModified = NO_TIMESTAMP;
	private final IFile propertyFile;
	private final HashMap&lt;String, Variable&gt; globalVars;

	/**
	 * Creates a valid model properties instance
	 *
	 * @param aProject reference to the current project
	 * @param name of the property file
	 * @throws CoreException on errors
	 */
	public ModelProperties(final IProject aProject, String filename) throws CoreException {
		if (aProject == null) {
			ErrorHelper.throwCoreException(&quot;project must be not null&quot;);
		}
		if (filename == null) {
			ErrorHelper.throwCoreException(&quot;filename must be not null&quot;);
		}
		this.globalVars = new HashMap&lt;String, Variable&gt;();
		this.propertyFile = (IFile) aProject.findMember(filename);
	}

	public IFile getPropertyFile() {
		return propertyFile;
	}

	/**
	 * Returns the global variables.
	 * @return global variables.
	 */
	public Map&lt;String, Variable&gt; getGlobalVars() {
		updateProperties();
		return globalVars;
	}

	@Override
	public String getProperty(String key) {
		updateProperties();
		return super.getProperty(key);
	}

	/**
	 * Updates the properties and the global variables if the property file has
	 * been modified.
	 */
	public void updateProperties() {
		if (this.propertyFile != null &amp;&amp; lastModified != this.propertyFile.getModificationStamp()) {
			loadProperties();
			globalVars.clear();
			for (Map.Entry&lt;Object, Object&gt; entry : entrySet()) {
				final String propertyName = (String) entry.getKey();
				globalVars.put(propertyName, new Variable(propertyName, entry.getValue()));
			}
		}
	}

	/**
	 * Loads the properties from the model file
	 */
	private void loadProperties() {

		try {
			if (propertyFile != null &amp;&amp; propertyFile.exists()) {
				super.load(propertyFile.getContents());
				this.lastModified = propertyFile.getModificationStamp();
				handleSpecialProperties();
			}
		} catch (CoreException e) {
			// no model property file isn't a problem but clear the properties:
			super.clear();
			this.lastModified = NO_TIMESTAMP;
		} catch (IOException e) {
			super.clear();
			this.lastModified = NO_TIMESTAMP;
		}
	}

	protected void handleSpecialProperties() {

	}
}
</pre>
<p>Using this class you can simple initialize the XPandExecutionContext with properties read from the file system. So in build-Method of your Generator put something like:</p>
<pre class="brush: java;">
         ModelProperties structureProperties = new ModelProperties(context.getBuiltProject(), &quot;structure.properties&quot;);
         XpandExecutionContextImpl ctx = new XpandExecutionContextImpl(output, null, structureProperties null, null);
</pre>
<p>Now you can resolve the values from the property files directly from the Templates and Extensions using the built-in GLOBAL VAR feature.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techjava.de/topics/2010/06/extending-xtext-build-participants/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse renews itself: Galileo has arrived!</title>
		<link>http://www.techjava.de/topics/2009/06/galileo-has-arrived/</link>
		<comments>http://www.techjava.de/topics/2009/06/galileo-has-arrived/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 19:08:47 +0000</pubDate>
		<dc:creator>HeSoK</dc:creator>
				<category><![CDATA[announce]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[Galileo]]></category>

		<guid isPermaLink="false">http://www.techjava.de/?p=382</guid>
		<description><![CDATA[ Finally, another annual release of Eclipse has arrived: version 3.5 aka Galileo.

Galileo is the release of Eclipse IDE synchronized with packets tuned for the Galileo release. Eclipse IDE has moved on from being a sole and mere development environment to being a rich architecture. Often, this is not visible to the novice user.
Galileo, or [...]]]></description>
			<content:encoded><![CDATA[<p><img style="margin-right: 10px; margin-left: 10px; float:right;" title="galileo" src="http://www.techjava.de/wp-content/uploads/galileo-300x148.png" alt="galileo" width="300" height="148" /> Finally, another annual release of Eclipse has arrived: version 3.5 aka Galileo.<br />

<a  href="http://www.eclipse.org/galileo/" onclick="javascript:pageTracker._trackPageview('/external/www.eclipse.org/galileo/');" >Galileo</a> is the release of Eclipse IDE synchronized with packets tuned for the Galileo release. Eclipse IDE has moved on from being a sole and mere development environment to being a rich architecture. Often, this is not visible to the novice user.</p>
<p>Galileo, or the JDT (Java Development Tools) to be more precisely, does not surprise with a load of 
<a  href="http://download.eclipse.org/eclipse/downloads/drops/R-3.5-200906111540/eclipse-news-all.html" onclick="javascript:pageTracker._trackPageview('/external/download.eclipse.org/eclipse/downloads/drops/R-3.5-200906111540/eclipse-news-all.html');" >stunning new features</a>, instead, its a solid continuation of improvements. Concerning the JDT part, it has lost its pace of former days. But Eclipse JDT still is the reliable friend at your side, helping you code. This is a good thing, since Eclipse has been the IDE of choice for many, many Java programmers for a lot of years now and has grown to something like a &#8220;standard&#8221;. Its usability and reliability are well known and especially the first part has been constantly improved.</p>
<p>Galileo now draws its innovative power from the huge amount of different 
<a  href="http://www.eclipse.org/galileo/projects.php" onclick="javascript:pageTracker._trackPageview('/external/www.eclipse.org/galileo/projects.php');" >projects</a> which were developed for it. The amount of tools for modeling is impressive. However it is not surprising, since modeling has become a sport in the past month. Consequently, it is bare logic to improve the tooling capabilities and quality. Galileo is following this path, not only because of Eclipse, but with what is available for it.</p>
<p><em>Code is poetry!</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techjava.de/topics/2009/06/galileo-has-arrived/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Eclipse Ganymede and WSCompile incompatibility?</title>
		<link>http://www.techjava.de/topics/2009/02/ganymede-wscompile/</link>
		<comments>http://www.techjava.de/topics/2009/02/ganymede-wscompile/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 17:49:04 +0000</pubDate>
		<dc:creator>shuron</dc:creator>
				<category><![CDATA[eclipse]]></category>
		<category><![CDATA[enterprise systems]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[ant]]></category>
		<category><![CDATA[ganymede]]></category>
		<category><![CDATA[wscompile]]></category>

		<guid isPermaLink="false">http://www.techjava.de/?p=270</guid>
		<description><![CDATA[I found strange problem running wscompile (from Sun&#8217;s Java Web Service Developer Pack 1.6) inside Ganymede (Eclipse Version 3.4.1). The run of the wscompile Ant task produce a problem. The build script execution freezes on the wscompile task. It prints the following message on console but then nothing happens.

[wscompile] wscompile ...\env\java\1.4.2_03\jre\bin\classpath-classpath D:\workspaces\general\lib\bla.bo-0.0.1.jar; ... D:\workspaces\general\lib\... jar.0.5.5

In [...]]]></description>
			<content:encoded><![CDATA[<p>I found strange problem running wscompile (from Sun&#8217;s Java Web Service Developer Pack 1.6) inside Ganymede (Eclipse Version 3.4.1). The run of the wscompile Ant task produce a problem. The build script execution freezes on the wscompile task. It prints the following message on console but then nothing happens.</p>
<pre class="brush: xml;">
[wscompile] wscompile ...\env\java\1.4.2_03\jre\bin\classpath-classpath D:\workspaces\general\lib\bla.bo-0.0.1.jar; ... D:\workspaces\general\lib\... jar.0.5.5
</pre>
<p>In this line, the classpath of wscompile is printed.</p>
<p>The build script uses configured Apache Ant in version 1.6.5. I tried to start it with Java in versions 1.4.2 und 1.6.0.10. Both works in Europa (Eclipse 3.3.x) but don&#8217;t work in Ganymede (Eclipse 3.4.x), except for the first run. It seems that Ganymede provides a different handling for Ant scripts. Every first start of an Ant build script produces new &#8220;External Tool Configuration&#8221; (if not already there). <strong>If this configuration already exists, wscompile task doesn&#8217;t work!</strong></p>
<p>This means my build script with wscompile task works only once, every first time after deleting the &#8220;External Tool Configuration&#8221;. I could live with that if I wouldn&#8217;t need that configuration. But I need that configuration to use different java version that is the workspace default.</p>
<p><strong>Do anyone know how to fix that?</strong><br />
Here is my task definiton.</p>
<pre class="brush: xml;">
&lt;taskdef name=&quot;wscompile&quot;
		classname=&quot;com.sun.xml.rpc.tools.ant.Wscompile&quot;
		classpathref=&quot;class.path.jwsdp&quot;
		/&gt;
</pre>
<p>and also task usage in the script</p>
<pre class="brush: xml;">
&lt;wscompile fork=&quot;true&quot; import=&quot;true&quot; base=&quot;java/class&quot; sourceBase=&quot;java/generated&quot; verbose=&quot;true&quot; features=&quot;documentliteral, wsi, searchschema, serializeinterfaces, explicitcontext&quot; mapping=&quot;java/generated/META-INF/jaxrpc-mapping.xml&quot; config=&quot;metadata/wsdl-config.xml&quot; xSerializable=&quot;true&quot;&gt;
	&lt;classpath&gt;
		&lt;path refid=&quot;class.path.local&quot; /&gt;
		&lt;path refid=&quot;class.path.ant&quot; /&gt;
		&lt;pathelement path=&quot;${java.class.path}&quot; /&gt;
	&lt;/classpath&gt;
&lt;/wscompile&gt;
</pre>
<p>Comments are welcome.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techjava.de/topics/2009/02/ganymede-wscompile/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Productive Java EE 6</title>
		<link>http://www.techjava.de/topics/2008/09/productive-java-ee-6/</link>
		<comments>http://www.techjava.de/topics/2008/09/productive-java-ee-6/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 22:16:53 +0000</pubDate>
		<dc:creator>Simon Zambrovski</dc:creator>
				<category><![CDATA[announce]]></category>
		<category><![CDATA[enterprise systems]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[mdsd]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[adam bien]]></category>
		<category><![CDATA[ejb]]></category>
		<category><![CDATA[Event]]></category>
		<category><![CDATA[Hamburg]]></category>
		<category><![CDATA[jee 6]]></category>
		<category><![CDATA[lehmanns]]></category>

		<guid isPermaLink="false">http://www.techjava.de/?p=129</guid>
		<description><![CDATA[The holiday season is over and we can enjoy an event every week. After 
Maven 2, 
Eclipse Stammtisch and 
reasoning on modularity an event on enterprise systems can be visited. It seems that after the 
last visit on Java EE 5 Hacking Adam want to tell something on Java EE 6 Hacking&#8230;
This session will be [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" style="border: 1px solid black; margin-right: 5px; margin-left: 5px;" src="http://www.techjava.de/wp-content/uploads/javausergrouphh.png" alt="JUGHH" width="132" height="123" />The holiday season is over and we can enjoy an event every week. After 
<a  href="http://www.techjava.de/topics/2008/09/maven-2-a-first-glance/">Maven 2</a>, 
<a  href="http://www.techjava.de/topics/2008/08/upcoming-eclipse-stammtisch-hamburg-v200809/">Eclipse Stammtisch</a> and 
<a  href="http://www.techjava.de/topics/2008/09/osgi-why-modularity-is-important/">reasoning on modularity</a> an event on enterprise systems can be visited. It seems that after the 
<a  href="http://www.techjava.de/topics/2008/05/progmatic-java-ee-5-hacking/">last visit on Java EE 5 Hacking</a> Adam want to tell something on Java EE 6 Hacking&#8230;</p>
<p>This session will be interactive / openspace like. He will walk through the new EJB 3.1 APIs and explain some interesting stuff as well. It is the logical conduction of the first 
<a  href="http://www.techjava.de/topics/2008/05/from-theory-to-practice/">JUG HH session in May 2008.</a></p>
<p><strong>Location:</strong>
<a  href="http://www.lob.de/cgi-bin/work/pages?id=U7HYixW1yHEijwvY&amp;frame=yes&amp;flag=google&amp;menupic=no&amp;page=lfb_hambg_2a" onclick="javascript:pageTracker._trackPageview('/external/www.lob.de/cgi-bin/work/pages');" >Lehmanns Fachbuchhandlung (Hamburg Hauptbahnhof)</a>, Kurze Mühren 6, 20095 Hamburg</p>
<p><strong>Date and Time:</strong> 16.09.2008, 20:00<br />
<strong>Topic:</strong> Productive Java EE 6 &#8211; Rethinking Best Practices And Bashing On Patterns, Cluster One</p>
<p><strong>Abstract: </strong>Java EE 6 is great, but many questions like:</p>
<ul>
<li>Are DAOs dead?</li>
<li>Do JSF really suck?</li>
<li>Are anemic JPA-entities a best practice?</li>
<li>Are XML deployment descriptors legacy?</li>
<li>Are EJBs lightweight?</li>
<li>How to test EJBs?</li>
<li>Is layering an antipattern?</li>
<li>Do we need factories?</li>
<li>How to integrate with RESTFul services?</li>
<li>Is it possible to deploy EJBs into a &#8230;WAR?</li>
<li>Are &#8220;plain old web containers&#8221; dead?</li>
<li>Services or Objects &#8211; what is the way to go?</li>
</ul>
<p>still remain open. These and many other questions will be discussed interactively with &#8230;code.</p>
<p><strong>Speaker:</strong> 
<a  href="http://www.adam-bien.com/" onclick="javascript:pageTracker._trackPageview('/external/www.adam-bien.com/');" ></a>Adam Bien<a></a></p>
<p><strong>About the speaker: </strong> Java Champion 
<a  href="http://www.adam-bien.com/" onclick="javascript:pageTracker._trackPageview('/external/www.adam-bien.com/');" >Adam Bien</a> is a self-employed consultant, lecturer, software architect, developer, and author in the enterprise Java sector in Germany who implements Java technology on a large scale. He is also the author of several books and articles on Java and J2EE technology, as well as distributed Java programming. His books include J2EE Patterns, J2EE HotSpots, Java EE 5 Architectures, Enterprise Architectures, Enterprise Java Frameworks, SOA Expert Knowledge, and Struts, all published in German.</p>
<p>As BEA technical director, Bien is also a member of the NetBeans Dream Team; an Expert Group member of the Java Community Process for EJB 3.1, JPA 2.0, and Java EE 6; and involved in embedded Java, Grid, and P2P technology. He currently works as an architect and developer in several J2EE-Java EE Model-Driven Architecture (MDA) and EAI component architecture projects for the Java EE platform and .NET.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techjava.de/topics/2008/09/productive-java-ee-6/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Maven 2 &#8211; a first glance</title>
		<link>http://www.techjava.de/topics/2008/09/maven-2-a-first-glance/</link>
		<comments>http://www.techjava.de/topics/2008/09/maven-2-a-first-glance/#comments</comments>
		<pubDate>Fri, 05 Sep 2008 12:01:42 +0000</pubDate>
		<dc:creator>joker</dc:creator>
				<category><![CDATA[technology]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[Event]]></category>
		<category><![CDATA[integration]]></category>
		<category><![CDATA[libraries]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[repository]]></category>

		<guid isPermaLink="false">http://www.techjava.de/?p=67</guid>
		<description><![CDATA[On Wednesday, August 27th I visited 
a presentation about Apache Maven 2. I will describe in short here what I have learned from that event and what you might want to know for your decision if you read more about 
Maven 2 or not. I will not repeat the basics or advanced features of Maven [...]]]></description>
			<content:encoded><![CDATA[<p>On Wednesday, August 27th I visited 
<a  href="http://www.techjava.de/topics/2008/08/automate-with-maven/">a presentation about Apache Maven 2</a>. I will describe in short here what I have learned from that event and what you might want to know for your decision if you read more about 
<a  href="http://maven.apache.org/" onclick="javascript:pageTracker._trackPageview('/external/maven.apache.org/');" >Maven 2</a> or not. I will not repeat the basics or advanced features of Maven 2 here, it has been done a million times elsewhere. <img class="size-medium wp-image-73 aligncenter" title="maven2-lifecycle" src="http://www.techjava.de/wp-content/uploads/maven2-lifecycle-300x215.gif" alt="maven2-lifecycle" width="300" height="215" /></p>
<p>Maven 2 is often compared with 
<a  href="http://ant.apache.org/" onclick="javascript:pageTracker._trackPageview('/external/ant.apache.org/');" >Apache Ant</a>. Sometimes it is seen as an extension to Ant. This is wrong. So, what’s the difference? Ant is a build tool, meaning you can build your projects with it. Maven is a “project management and comprehension tool”. Project management is actually focussing the technical part, is does not include Gantt diagrams or things like that. What is does include is a description of the technical part of your project, including a source repository, dependencies, documentation, developers and so on. What is the advantage of this?</p>
<ul>
<li>Project setup is easier now. No searching for required libs, setting build paths, dealing with other weird stuff</li>
<li>Project comprehension is easier. The information about the project, the Project Object Model (POM) is human readable. That’s for a reason. Especially in larger projects this seems to be useful to me.</li>
<li>Changes in projects are tracked easier. Someone includes a new library? All the colleagues’ builds are broken. You have to communicate somehow to your team mates that they have to use that lib. With maven, just check in the new pom file, which includes the new dependency. All your colleagues will get it automatically from the repository you have in your company (hopefully).</li>
<li>Release management and integration in CI systems comes out-of-the-box. You have all you need to do that. Simply.</li>
</ul>
<p>Granted, you can do a lot of those with Ant if you are good at it. But with Maven 2 it is a lot easier. As Maven 2 brings a standard project layout, projects not only look similar in their structure every time but they can build in support for a lot of things this way. The pom files are very short compared to Ant build scripts doing the same and more readable. Granted again, you can make your own Ant script containing standard targets you use in every project. You split your Ant files in project specific and general parts. Your project specific part is very short then. Then you did just what the creators of Maven did. Congratulations, you are a smart guy.</p>
<p>I am not saying that all your problems are solved by using it. Maven 2 has some weaknesses as far as I can tell from my limited experience with it. I heard from a participant that the automatic dependency resolving does not work all the time. Normally, Maven would resolve all transitive dependencies from all libs. If lib A is dependent on lib B and you include A in your project, the description of A includes the dependency. Maven will include B, too. I don’t know if that is a failure of maven or the guy who told me about it. AFAIK it needs time to get into it, I often encountered behaviour I didn’t expect. But that was because of my lack of understanding of Maven 2, not because of Maven 2 itself. So, the disadvantage is the same as with every new tool. You need time to learn doing stuff with it, and unfortunately you need to fail sometimes to learn from your mistakes.</p>
<p>BTW, Maven 2 is open source. Everyone who misses something or wants something to get better is welcomed to get into the dev team of Maven 2. One of  those points would be the beloved documentation which has great potential for improvement.</p>
<p>Hope this helps integrating Maven 2 into your understanding of the software development world.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techjava.de/topics/2008/09/maven-2-a-first-glance/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Automate with Maven</title>
		<link>http://www.techjava.de/topics/2008/08/automate-with-maven/</link>
		<comments>http://www.techjava.de/topics/2008/08/automate-with-maven/#comments</comments>
		<pubDate>Fri, 22 Aug 2008 15:54:28 +0000</pubDate>
		<dc:creator>Simon Zambrovski</dc:creator>
				<category><![CDATA[announce]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[build management]]></category>
		<category><![CDATA[Event]]></category>
		<category><![CDATA[Hamburg]]></category>
		<category><![CDATA[lehmanns]]></category>
		<category><![CDATA[maven]]></category>

		<guid isPermaLink="false">http://www.techjava.de/?p=65</guid>
		<description><![CDATA[The 
Java User Group Hamburg (JUG-HH)  organizes 
another event at 
Lehmanns Bookstore in Hamburg. This time the subject of the talk is build management and project automation with help of an open-source tool called Maven. Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), [...]]]></description>
			<content:encoded><![CDATA[<p>The 
<a  href="http://www.jughh.org:8080/display/jughh/Maven+2" onclick="javascript:pageTracker._trackPageview('/external/www.jughh.org/display/jughh/Maven+2');" >Java User Group Hamburg (JUG-HH)</a> <img class="alignright" style="margin: 5px; float: right;" src="http://www.techjava.de/wp-content/uploads/javausergrouphh.png" alt="" width="132" height="123" /> organizes 
<a  href="http://www.techjava.de/topics/2008/05/from-theory-to-practice/">another </a>event at 
<a  href="http://www.lob.de/cgi-bin/work/pages?id=U7HYixW1yHEijwvY&amp;frame=yes&amp;flag=google&amp;menupic=no&amp;page=lfb_hambg_2a" onclick="javascript:pageTracker._trackPageview('/external/www.lob.de/cgi-bin/work/pages');" >Lehmanns Bookstore</a> in Hamburg. This time the subject of the talk is build management and project automation with help of an open-source tool called Maven. Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project&#8217;s build, reporting and documentation from a central piece of information.</p>
<table style="height: 110px;" border="0" width="307">
<tbody>
<tr>
<td>Subject:</td>
<td>
<a  href="http://maven.apache.org/" onclick="javascript:pageTracker._trackPageview('/external/maven.apache.org/');" ><strong>Maven 2</strong></a></td>
</tr>
<tr>
<td>Date:</td>
<td><strong>Wednesday, 27-th August 2008</strong></td>
</tr>
<tr>
<td>Time:</td>
<td><strong>20:00 
<a  href="http://www.matzat.net/" onclick="javascript:pageTracker._trackPageview('/external/www.matzat.net/');" ></a></strong></td>
</tr>
<tr>
<td>Who:</td>
<td><strong>
<a  href="http://www.matzat.net/" onclick="javascript:pageTracker._trackPageview('/external/www.matzat.net/');" >Christian Matzat</a> </strong>
<a  href="http://maven.apache.org/" onclick="javascript:pageTracker._trackPageview('/external/maven.apache.org/');" ><strong></strong></a></td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.techjava.de/topics/2008/08/automate-with-maven/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Eclipse DemoCamp 2008 Hamburg &#8211; Ganymede Edition</title>
		<link>http://www.techjava.de/topics/2008/06/eclipse-democamps-2008-ganymede-editionhamburg/</link>
		<comments>http://www.techjava.de/topics/2008/06/eclipse-democamps-2008-ganymede-editionhamburg/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 18:34:21 +0000</pubDate>
		<dc:creator>HeSoK</dc:creator>
				<category><![CDATA[announce]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[camp]]></category>
		<category><![CDATA[demo]]></category>
		<category><![CDATA[Event]]></category>
		<category><![CDATA[ganymede]]></category>
		<category><![CDATA[Hamburg]]></category>

		<guid isPermaLink="false">http://www.techjava.de/?p=64</guid>
		<description><![CDATA[On June 16th another 
Eclipse Demo Camp took place in Hamburg. Organized by 
Peter Friese of itemis and Martin Lippert of it-agile, Eclipse enthusiasts and presenters met in a former coffee exchange in the harbor of Hamburg, the so called &#8220;Hafencity&#8221;.

The evening started with an interesting preview of Xtext 2.0 by Sven Efftinge (also itemis). [...]]]></description>
			<content:encoded><![CDATA[<p>On June 16th another 
<a  href="http://wiki.eclipse.org/Eclipse_DemoCamps_2008_-_Ganymede_Edition" target="_blank" onclick="javascript:pageTracker._trackPageview('/external/wiki.eclipse.org/Eclipse_DemoCamps_2008_-_Ganymede_Edition');" >Eclipse Demo Camp</a> took place in Hamburg. Organized by 
<a  href="http://www.peterfriese.de/" target="_blank" onclick="javascript:pageTracker._trackPageview('/external/www.peterfriese.de/');" >Peter Friese</a> of itemis and Martin Lippert of it-agile, Eclipse enthusiasts and presenters met in a former coffee exchange in the harbor of Hamburg, the so called &#8220;Hafencity&#8221;.</p>
<p><img class="alignleft" style="margin: 10px;" src="http://www.techjava.de/wp-content/uploads/EclipseDemoCampHamburg2007_78FD/EclipseDemoCamp_thumb.gif" alt="Eclipse Demo Camp" /></p>
<p>The evening started with an interesting preview of Xtext 2.0 by Sven Efftinge (also itemis). Xtext 2.0 is rewritten from scratch and provides better performance than its predecessor. The current plan for release is about October 2008. The talk was followed by a presentation given by Matthias Lübken (akquinet it-agile) who demostrated how to use the google web toolkit (GWT) in conjunction with serverside Equinox framework. Matthias talked about some of the tweaks which are necessary in order to get the two working together and also showed a little live demo. He was followed by 
<a  href="http://www.wickedshell.org/" target="_blank" onclick="javascript:pageTracker._trackPageview('/external/www.wickedshell.org/');" >Stefan Reichert</a> of Lufthansa Systems who introduced his &#8216;wicked shell&#8217; for Eclipse. This handy tool started as tech-demo how to bind an external process to a SWT widget. Finally, it turned into a command line, shell, bash&#8230; integration for Eclipse &#8211; featuring code completion and history. Reginald Stadlbauer (CEO froglogic) showed how to automize GUI testing of GWT and other Java based GUIs using froglogics Squish. Squish offers scripting languages like Perl, Python or JavaScript to the user to automatize application gui testing. The tool, not an Eclipse application itself, is currently rewritten and will feature full Eclipse integration sometime soon. Finally, Frank Zimmermann (Prof. at the Nordakademie) and two of his students Stefan Tanck and Henning Banneitz showed how model-driven software development (MDSD) using oAWs XText can be used to generate adapters for SAP SI in order to transform EDIFACT messages to XML and back. Unfortunately, a talk about Spring dynamic modules with OSGi was not held, the presenter Gerd Wütherich (independant consulting) was ill.</p>
<p>Apart from the interesting talks, it was nice to see many familiar faces, which attended the 
<a  href="http://www.techjava.de/topics/2007/12/eclipse-democamp-hamburg-07-content/">Eclipse Demo Camp in Hamburg at the end of 2007</a>. The Eclipse Demo Camp seems to build a community. Thanks to the organizers for enabling this great event.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techjava.de/topics/2008/06/eclipse-democamps-2008-ganymede-editionhamburg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Library dependency management</title>
		<link>http://www.techjava.de/topics/2008/02/reasoning_ivy/</link>
		<comments>http://www.techjava.de/topics/2008/02/reasoning_ivy/#comments</comments>
		<pubDate>Mon, 11 Feb 2008 13:49:44 +0000</pubDate>
		<dc:creator>Simon Zambrovski</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[integration]]></category>
		<category><![CDATA[ivy]]></category>
		<category><![CDATA[libraries]]></category>
		<category><![CDATA[repository]]></category>

		<guid isPermaLink="false">http://www.techjava.de/topics/2008/02/reasoning_ivy/</guid>
		<description><![CDATA[We are currently reasoning about usage of 
Apache&#8217;s Ivy for library dependency. This should solve the problem for library acquisition and is a step towards 
continuous integration by providing an own repository. As long we use Eclipse for development, we also need a good integration in to the IDE. The 
Ive Eclipse plugin is very [...]]]></description>
			<content:encoded><![CDATA[<p>We are currently reasoning about usage of 
<a  href="http://ant.apache.org/ivy/" target="_blank" onclick="javascript:pageTracker._trackPageview('/external/ant.apache.org/ivy/');" >Apache&#8217;s Ivy</a> for library dependency. This should solve the problem for library acquisition and is a step towards 
<a  href="http://www.martinfowler.com/articles/continuousIntegration.html" target="_blank" onclick="javascript:pageTracker._trackPageview('/external/www.martinfowler.com/articles/continuousIntegration.html');" >continuous integration</a> by providing an own repository. As long we use Eclipse for development, we also need a good integration in to the IDE. The 
<a  href="http://www.jaya.free.fr/ivyde/download.html" target="_blank" onclick="javascript:pageTracker._trackPageview('/external/www.jaya.free.fr/ivyde/download.html');" >Ive Eclipse plugin</a> is very poor, but I found 
<a  href="http://simplygenius.com/geekblog/2006/06/05/auto-generating-eclipse-user-libraries/" target="_blank" title="Auto generating eclipse user libraries" onclick="javascript:pageTracker._trackPageview('/external/simplygenius.com/geekblog/2006/06/05/auto-generating-eclipse-user-libraries/');" >a post in Swapfile of my brain</a> with similar ideas&#8230; It&#8217;s time to put everything together. </p>
<div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:2d753e89-eb8d-48ff-ab36-cf77702f6070" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati tags: 
<a  href="http://technorati.com/tags/java" rel="tag" onclick="javascript:pageTracker._trackPageview('/external/technorati.com/tags/java');" >java</a>, 
<a  href="http://technorati.com/tags/dependancy" rel="tag" onclick="javascript:pageTracker._trackPageview('/external/technorati.com/tags/dependancy');" >dependancy</a>, 
<a  href="http://technorati.com/tags/ivy" rel="tag" onclick="javascript:pageTracker._trackPageview('/external/technorati.com/tags/ivy');" >ivy</a>, 
<a  href="http://technorati.com/tags/integration" rel="tag" onclick="javascript:pageTracker._trackPageview('/external/technorati.com/tags/integration');" >integration</a>, 
<a  href="http://technorati.com/tags/libraries" rel="tag" onclick="javascript:pageTracker._trackPageview('/external/technorati.com/tags/libraries');" >libraries</a>, 
<a  href="http://technorati.com/tags/repository" rel="tag" onclick="javascript:pageTracker._trackPageview('/external/technorati.com/tags/repository');" >repository</a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.techjava.de/topics/2008/02/reasoning_ivy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TLA+ Eclipse Plugin</title>
		<link>http://www.techjava.de/topics/2004/11/tla-eclipse-plugin/</link>
		<comments>http://www.techjava.de/topics/2004/11/tla-eclipse-plugin/#comments</comments>
		<pubDate>Wed, 17 Nov 2004 01:54:14 +0000</pubDate>
		<dc:creator>Simon Zambrovski</dc:creator>
				<category><![CDATA[eclipse]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://www.techjava.de/topics/2004/11/tla-eclipse-plugin/</guid>
		<description><![CDATA[Boris and me developed the TLA+ Eclipse plugin. Further we introduce a new site, to be a home of such projects: 
http://www.techjava.de/
The 
http://www.techjava.de/ will be filled with information soon.
]]></description>
			<content:encoded><![CDATA[<p>Boris and me developed the TLA+ Eclipse plugin. Further we introduce a new site, to be a home of such projects: 
<a  href="http://www.techjava.de/">http://www.techjava.de/</a></p>
<p>The 
<a  href="http://www.techjava.de/">http://www.techjava.de/</a> will be filled with information soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techjava.de/topics/2004/11/tla-eclipse-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
