1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package com.github.maven_nar.cpptasks.compiler;
21
22 import java.io.File;
23
24 import org.apache.tools.ant.types.Environment;
25
26 import com.github.maven_nar.cpptasks.parser.FortranParser;
27 import com.github.maven_nar.cpptasks.parser.Parser;
28
29
30
31
32
33
34
35 public abstract class CommandLineFortranCompiler extends CommandLineCompiler {
36 protected CommandLineFortranCompiler(final String command, final String identifierArg,
37 final String[] sourceExtensions, final String[] headerExtensions, final String outputSuffix,
38 final boolean libtool, final CommandLineFortranCompiler libtoolCompiler, final boolean newEnvironment,
39 final Environment env) {
40 super(command, identifierArg, sourceExtensions, headerExtensions, outputSuffix, libtool, libtoolCompiler,
41 newEnvironment, env);
42 }
43
44 @Override
45 protected Parser createParser(final File source) {
46 return new FortranParser();
47 }
48 }