Skip to content

mate1/struts-annotation-processor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

struts-annotation-processor

Annotation Processor for generating Struts2 taglib

This is used for generating taglib .tld from Struts 2 annotated class. Instead of using APT, this uses Java 6 Annotation Processor.

Sample usage of using ANT

<target name="generate-taglib">
   <javac destdir="bin"
      debug="true"
      failonerror="true"
      compiler="javac1.6"
      srcdir="StrutsTags/com/my/struts/tag/components" includeantruntime="false" encoding="utf-8" verbose="true">
        <classpath refid="tags.classpath"/>
        <compilerarg line="-proc:only"/>
        <compilerarg line="-processor com.lunary.struts.annotations.taglib.processor.Struts2AnnotationProcessor" />
        <compilerarg line="-source 6"/>
        <compilerarg value="-AtlibVersion=1.0" />
        <compilerarg value="-AjspVersion=2.0" />
        <compilerarg value="-AshortName=mb" />
        <compilerarg value="-Auri=/my-struts-tags" />
        <compilerarg value="-Adescription='My Struts Tags'" />
        <compilerarg value="-AdisplayName='My Struts Tags'" />
        <compilerarg value="-AoutTemplatesDir=${basedir}/dist/taglib-doc" />
        <compilerarg value="-AoutFile=${basedir}/bin/META-INF/my-struts-tags.tld" />
    </javac>
</target>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 52.5%
  • Java 45.9%
  • Scala 1.6%