--
You received this message because you are subscribed to the Google Groups "mapstruct-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapstruct-users+unsubscribe@googlegroups.com.
To post to this group, send email to mapstruct-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<target name="generate-mappers">
<mkdir dir="${generated.dir}/mapstruct/"/>
<javac srcdir="${src.dir}">
<compilerarg line="-processorpath ${base.lib.dir}/common"/>
<compilerarg line="-processor org.mapstruct.ap.MappingProcessor"/>
<!-- compilerarg line="-processor mapstruct-processor-1.1.0.CR1.jar"/ -->
<compilerarg line="-s ${generated.dir}/mapstruct/"/>
</javac>
</target>Hi,This question and answer on stack overflow may be helpful to you: http://stackoverflow.com/questions/3644069/java-6-annotation-processing-configuration-with-antIf you got it working, maybe you could send a pull request for the MapStruct documentation based on your findings (see https://github.com/mapstruct/mapstruct/tree/master/documentation/src/main/asciidoc)?Cheers,--Gunnar
2016-10-17 13:23 GMT+02:00 Aldo <flow...@gmail.com>:
Hello!I am using Apache Ant as build tool. In the MapStruct reference guide Chapter 2 "Set up" it is stated, that MapStruct can be used with Ant.However, there is no further description or example in the reference guide and searching the web for this topic did not help me. I am wondering, how I can use MapStruct with Apache Ant, i.e. how I can trigger the annotation processing and mapper generation during the build process with Apache Ant.Does anybody have experiences using MapStruct with Ant?Thank you for any support!Best regards,Aldo
--
You received this message because you are subscribed to the Google Groups "mapstruct-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapstruct-use...@googlegroups.com.
To post to this group, send email to mapstru...@googlegroups.com.
<target name="generate-mapstruct-mappers"> <!-- create dir for compiled classes and generated mappers --> <mkdir dir="${basedir}/build/classes"/> <mkdir dir="${basedir}/build/generated/mapstruct/"/>
<!-- compile classes without the mappers --> <javac srcdir="${basedir}/src/main/java/" destdir="${basedir}/build/classes/" includeantruntime="false"> <classpath refid="classpath"/> <exclude name="${basedir}/src/main/java/mappers/**"/> </javac>
<!-- add mapstruct to the classpath --> <path id="mapstruct.classpath"> <path refid="classpath"/> <fileset dir="${lib}"> <include name="path/to/mapstruct/mapstruct.jar"/> </fileset> </path> <!-- compile the mappers and run mapstruct annotation processor --> <javac srcdir="${basedir}/src/main/java/mappers" destdir="${basedir}/build/classes/" includeantruntime="false"> <classpath refid="mapstruct.classpath"/> <compilerarg line="-processor org.mapstruct.ap.MappingProcessor"/> <compilerarg line="-s ${basedir}/build/generated/mapstruct/"/> </javac> </target>Hi,This question and answer on stack overflow may be helpful to you: http://stackoverflow.com/questions/3644069/java-6-annotation-processing-configuration-with-antIf you got it working, maybe you could send a pull request for the MapStruct documentation based on your findings (see https://github.com/mapstruct/mapstruct/tree/master/documentation/src/main/asciidoc)?Cheers,--Gunnar
2016-10-17 13:23 GMT+02:00 Aldo <flow...@gmail.com>:
Hello!I am using Apache Ant as build tool. In the MapStruct reference guide Chapter 2 "Set up" it is stated, that MapStruct can be used with Ant.However, there is no further description or example in the reference guide and searching the web for this topic did not help me. I am wondering, how I can use MapStruct with Apache Ant, i.e. how I can trigger the annotation processing and mapper generation during the build process with Apache Ant.Does anybody have experiences using MapStruct with Ant?Thank you for any support!Best regards,Aldo
--
You received this message because you are subscribed to the Google Groups "mapstruct-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapstruct-use...@googlegroups.com.
To post to this group, send email to mapstru...@googlegroups.com.