View Javadoc
1   /*
2    * The akquinet maven-latex-plugin project
3    *
4    * Copyright (c) 2011 by akquinet tech@spree GmbH
5    *
6    * Licensed under the Apache License, Version 2.0 (the "License");
7    * you may not use this file except in compliance with the License.
8    * You may obtain a copy of the License at
9    *
10   * http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing, software
13   * distributed under the License is distributed on an "AS IS" BASIS,
14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   * See the License for the specific language governing permissions and
16   * limitations under the License.
17   */
18  
19  package eu.simuline.m2latex.mojo;
20  
21  import eu.simuline.m2latex.core.Target;
22  
23  import java.util.SortedSet;
24  import java.util.TreeSet;
25  //import java.util.EnumSet;
26  
27  import org.apache.maven.plugins.annotations.Mojo;
28  
29  /**
30   * Build documents in msword formats, above all docx from LaTeX sources 
31   * for the goal <code>docx</code> which is not tied to a lifecycle phase. 
32   */
33  @Mojo(name = "docx")
34  public class DocxMojo extends CfgLatexMojo {
35  
36      public SortedSet<Target> getTargetSet() {
37  	SortedSet<Target> res = new TreeSet<Target>();
38  	res.add(Target.docx);
39  	return res;
40  	//return EnumSet.of(Target.docx);
41      }
42  
43  
44  }