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 org.apache.maven.plugins.annotations.Mojo;
24
25 import java.util.SortedSet;
26 import java.util.TreeSet;
27 //import java.util.EnumSet;
28
29 // documentation occurs in latex:help
30 /**
31 * Builds DVI/XDV documents from LaTeX sources.
32 * Generically DVI is created but `xelatex` creates XDV instead.
33 */
34 @Mojo(name = "dvi")
35 public class DviMojo extends CfgLatexMojo {
36
37 public SortedSet<Target> getTargetSet() {
38 SortedSet<Target> res = new TreeSet<Target>();
39 res.add(Target.dvi);
40 return res;
41 //return EnumSet.of(Target.dvi);
42 }
43 }