eclipseantmylyn-wikitext

Is it possible to create an ant-build file for a wikitext project automatically in eclipse?


I have a few hundred textile files in my eclipse project and I have written an ant-build xml file for creating the output html files. This works fine normally. However, every time I add some .textile files to the project, I also have to edit the projectBuilder.xml file manually if the the output has to be generated. Is there a way in eclipse where I can generate the projectBuilder.xml file automatically? i.e. Lets say, I add a new folder with some 50 subfolders having .textile files inside them, I want eclipse to detect this and add those paths to the build file.

Following is part of the build file for illustration purpose:

<?xml version="1.0"?>
<project name="ALM" default="generate-html">
<property name="wikitext.standalone" value="jar" />
<path id="wikitext.classpath">
    <fileset dir="${wikitext.standalone}">
        <include name="org.eclipse.mylyn.wikitext.*core*.jar" />
    </fileset>
</path>
<taskdef classpathref="wikitext.classpath" resource="org/eclipse/mylyn/wikitext/core/util/anttask/tasks.properties" />
<target name="generate-html" description="Generate HTML from textile source">
  <wikitext-to-html markupLanguage="Textile">
    <fileset dir="${basedir}/..">
      <include name="Docu/*.textile" />
      <include name="Add-Ons/*.textile" />
      <include name="uC1/asv/ASD/doc/*.textile" />

Solution

  • I'm not sure, which of these 2 problems you have.