repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
partition
stringclasses
1 value
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/NarProperties.java
NarProperties.getInstance
public static NarProperties getInstance(final MavenProject project) throws MojoFailureException { NarProperties instance = instances.get(project); if (instance == null) { if (project == null) { instance = new NarProperties(project, null, null); } else { String customPropertyLocatio...
java
public static NarProperties getInstance(final MavenProject project) throws MojoFailureException { NarProperties instance = instances.get(project); if (instance == null) { if (project == null) { instance = new NarProperties(project, null, null); } else { String customPropertyLocatio...
[ "public", "static", "NarProperties", "getInstance", "(", "final", "MavenProject", "project", ")", "throws", "MojoFailureException", "{", "NarProperties", "instance", "=", "instances", ".", "get", "(", "project", ")", ";", "if", "(", "instance", "==", "null", ")"...
Retrieve the NarProperties @param project may be null @return @throws MojoFailureException
[ "Retrieve", "the", "NarProperties" ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/NarProperties.java#L54-L77
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/ide/ProjectDef.java
ProjectDef.setClassname
public void setClassname(final String className) { Object proc = null; try { final Class<?> implClass = ProjectDef.class.getClassLoader().loadClass(className); try { final Method getInstance = implClass.getMethod("getInstance"); proc = getInstance.invoke(null); } catch (final E...
java
public void setClassname(final String className) { Object proc = null; try { final Class<?> implClass = ProjectDef.class.getClassLoader().loadClass(className); try { final Method getInstance = implClass.getMethod("getInstance"); proc = getInstance.invoke(null); } catch (final E...
[ "public", "void", "setClassname", "(", "final", "String", "className", ")", "{", "Object", "proc", "=", "null", ";", "try", "{", "final", "Class", "<", "?", ">", "implClass", "=", "ProjectDef", ".", "class", ".", "getClassLoader", "(", ")", ".", "loadCla...
Class name for a user-supplied project writer. Use the "type" attribute to specify built-in project writer implementations. @param className full class name
[ "Class", "name", "for", "a", "user", "-", "supplied", "project", "writer", ".", "Use", "the", "type", "attribute", "to", "specify", "built", "-", "in", "project", "writer", "implementations", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/ide/ProjectDef.java#L240-L254
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/ide/ProjectDef.java
ProjectDef.setOutfile
public void setOutfile(final File outfile) { // // if file name was empty, skip link step // if (outfile == null || outfile.toString().length() > 0) { this.outFile = outfile; } }
java
public void setOutfile(final File outfile) { // // if file name was empty, skip link step // if (outfile == null || outfile.toString().length() > 0) { this.outFile = outfile; } }
[ "public", "void", "setOutfile", "(", "final", "File", "outfile", ")", "{", "//", "// if file name was empty, skip link step", "//", "if", "(", "outfile", "==", "null", "||", "outfile", ".", "toString", "(", ")", ".", "length", "(", ")", ">", "0", ")", "{",...
Sets the name for the generated project file. @param outfile output file name
[ "Sets", "the", "name", "for", "the", "generated", "project", "file", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/ide/ProjectDef.java#L299-L306
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/msvc/MsvcProjectWriter.java
MsvcProjectWriter.getSources
private File[] getSources(final List<File> sourceList) { final File[] sortedSources = new File[sourceList.size()]; sourceList.toArray(sortedSources); Arrays.sort(sortedSources, new Comparator<File>() { @Override public int compare(final File o1, final File o2) { return o1.getName().compa...
java
private File[] getSources(final List<File> sourceList) { final File[] sortedSources = new File[sourceList.size()]; sourceList.toArray(sortedSources); Arrays.sort(sortedSources, new Comparator<File>() { @Override public int compare(final File o1, final File o2) { return o1.getName().compa...
[ "private", "File", "[", "]", "getSources", "(", "final", "List", "<", "File", ">", "sourceList", ")", "{", "final", "File", "[", "]", "sortedSources", "=", "new", "File", "[", "sourceList", ".", "size", "(", ")", "]", ";", "sourceList", ".", "toArray",...
Get alphabetized array of source files. @param sourceList list of source files @return File[] source files
[ "Get", "alphabetized", "array", "of", "source", "files", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/msvc/MsvcProjectWriter.java#L163-L173
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/msvc/MsvcProjectWriter.java
MsvcProjectWriter.writeLinkOptions
private void writeLinkOptions(final Writer writer, final boolean isDebug, final List<DependencyDef> dependencies, final String basePath, final TargetInfo linkTarget, final Map<String, TargetInfo> targets) throws IOException { final StringBuffer baseOptions = new StringBuffer(100); final StringBuffer opti...
java
private void writeLinkOptions(final Writer writer, final boolean isDebug, final List<DependencyDef> dependencies, final String basePath, final TargetInfo linkTarget, final Map<String, TargetInfo> targets) throws IOException { final StringBuffer baseOptions = new StringBuffer(100); final StringBuffer opti...
[ "private", "void", "writeLinkOptions", "(", "final", "Writer", "writer", ",", "final", "boolean", "isDebug", ",", "final", "List", "<", "DependencyDef", ">", "dependencies", ",", "final", "String", "basePath", ",", "final", "TargetInfo", "linkTarget", ",", "fina...
Writes link options. @param writer Writer writer @param basePath String base path @param dependencies project dependencies, used to suppress explicit linking. @param linkTarget TargetInfo link target @param targets Hashtable all targets @throws IOException if unable to write to project file
[ "Writes", "link", "options", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/msvc/MsvcProjectWriter.java#L350-L425
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/msvc/MsvcProjectWriter.java
MsvcProjectWriter.writeMessage
private void writeMessage(final Writer writer, final String projectName, final String targtype) throws IOException { writer.write("!MESSAGE This is not a valid makefile. "); writer.write("To build this project using NMAKE,\r\n"); writer.write("!MESSAGE use the Export Makefile command and run\r\n"); writ...
java
private void writeMessage(final Writer writer, final String projectName, final String targtype) throws IOException { writer.write("!MESSAGE This is not a valid makefile. "); writer.write("To build this project using NMAKE,\r\n"); writer.write("!MESSAGE use the Export Makefile command and run\r\n"); writ...
[ "private", "void", "writeMessage", "(", "final", "Writer", "writer", ",", "final", "String", "projectName", ",", "final", "String", "targtype", ")", "throws", "IOException", "{", "writer", ".", "write", "(", "\"!MESSAGE This is not a valid makefile. \"", ")", ";", ...
Writes "This is not a makefile" warning. @param writer Writer writer @param projectName String project name @param targtype String target type @throws IOException if error writing project
[ "Writes", "This", "is", "not", "a", "makefile", "warning", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/msvc/MsvcProjectWriter.java#L440-L471
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/msvc/MsvcProjectWriter.java
MsvcProjectWriter.writeSource
private void writeSource(final Writer writer, final String basePath, final File groupMember) throws IOException { writer.write("# Begin Source File\r\n\r\nSOURCE="); String relativePath = CUtil.getRelativePath(basePath, groupMember); // // if relative path is just a name (hello.c) then // make it .\...
java
private void writeSource(final Writer writer, final String basePath, final File groupMember) throws IOException { writer.write("# Begin Source File\r\n\r\nSOURCE="); String relativePath = CUtil.getRelativePath(basePath, groupMember); // // if relative path is just a name (hello.c) then // make it .\...
[ "private", "void", "writeSource", "(", "final", "Writer", "writer", ",", "final", "String", "basePath", ",", "final", "File", "groupMember", ")", "throws", "IOException", "{", "writer", ".", "write", "(", "\"# Begin Source File\\r\\n\\r\\nSOURCE=\"", ")", ";", "St...
Writes the entry for one source file in the project. @param writer Writer writer @param basePath String base path for project @param groupMember File project source file @throws IOException if error writing project file
[ "Writes", "the", "entry", "for", "one", "source", "file", "in", "the", "project", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/msvc/MsvcProjectWriter.java#L652-L663
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/platforms/WindowsPlatform.java
WindowsPlatform.encodeVersion
private static void encodeVersion(final StringBuffer buf, final short[] version) { for (int i = 0; i < 3; i++) { buf.append(Short.toString(version[i])); buf.append(','); } buf.append(Short.toString(version[3])); }
java
private static void encodeVersion(final StringBuffer buf, final short[] version) { for (int i = 0; i < 3; i++) { buf.append(Short.toString(version[i])); buf.append(','); } buf.append(Short.toString(version[3])); }
[ "private", "static", "void", "encodeVersion", "(", "final", "StringBuffer", "buf", ",", "final", "short", "[", "]", "version", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "3", ";", "i", "++", ")", "{", "buf", ".", "append", "(", "S...
Converts parsed version information into a string representation. @param buf StringBuffer string buffer to receive version number @param version short[] four-element array
[ "Converts", "parsed", "version", "information", "into", "a", "string", "representation", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/platforms/WindowsPlatform.java#L128-L134
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/platforms/WindowsPlatform.java
WindowsPlatform.hasSameContent
private static boolean hasSameContent(final InputStream stream1, final InputStream stream2) throws IOException { int byte1 = -1; int byte2 = -1; do { byte1 = stream1.read(); byte2 = stream2.read(); } while (byte1 == byte2 && byte1 != -1); return byte1 == byte2; }
java
private static boolean hasSameContent(final InputStream stream1, final InputStream stream2) throws IOException { int byte1 = -1; int byte2 = -1; do { byte1 = stream1.read(); byte2 = stream2.read(); } while (byte1 == byte2 && byte1 != -1); return byte1 == byte2; }
[ "private", "static", "boolean", "hasSameContent", "(", "final", "InputStream", "stream1", ",", "final", "InputStream", "stream2", ")", "throws", "IOException", "{", "int", "byte1", "=", "-", "1", ";", "int", "byte2", "=", "-", "1", ";", "do", "{", "byte1",...
Compare two input streams for duplicate content Naive implementation, but should not be performance issue. @param stream1 stream @param stream2 stream @return true if streams are identical in content @throws IOException if error reading streams
[ "Compare", "two", "input", "streams", "for", "duplicate", "content" ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/platforms/WindowsPlatform.java#L149-L158
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/platforms/WindowsPlatform.java
WindowsPlatform.parseVersion
public static short[] parseVersion(final String version) { final short[] values = new short[] { 0, 0, 0, 0 }; if (version != null) { final StringBuffer buf = new StringBuffer(version); int start = 0; for (int i = 0; i < 4; i++) { int end = version.indexOf('.', start); ...
java
public static short[] parseVersion(final String version) { final short[] values = new short[] { 0, 0, 0, 0 }; if (version != null) { final StringBuffer buf = new StringBuffer(version); int start = 0; for (int i = 0; i < 4; i++) { int end = version.indexOf('.', start); ...
[ "public", "static", "short", "[", "]", "parseVersion", "(", "final", "String", "version", ")", "{", "final", "short", "[", "]", "values", "=", "new", "short", "[", "]", "{", "0", ",", "0", ",", "0", ",", "0", "}", ";", "if", "(", "version", "!=",...
Parse version string into array of four short values. @param version String version @return short[] four element array
[ "Parse", "version", "string", "into", "array", "of", "four", "short", "values", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/platforms/WindowsPlatform.java#L167-L200
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/PrecompileExceptDef.java
PrecompileExceptDef.setDir
public void setDir(final File dir) throws BuildException { if (this.localSet == null) { this.localSet = new ConditionalFileSet(); this.owner.appendExceptFileSet(this.localSet); } this.localSet.setDir(dir); }
java
public void setDir(final File dir) throws BuildException { if (this.localSet == null) { this.localSet = new ConditionalFileSet(); this.owner.appendExceptFileSet(this.localSet); } this.localSet.setDir(dir); }
[ "public", "void", "setDir", "(", "final", "File", "dir", ")", "throws", "BuildException", "{", "if", "(", "this", ".", "localSet", "==", "null", ")", "{", "this", ".", "localSet", "=", "new", "ConditionalFileSet", "(", ")", ";", "this", ".", "owner", "...
Sets the base-directory
[ "Sets", "the", "base", "-", "directory" ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/PrecompileExceptDef.java#L67-L73
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/PrecompileExceptDef.java
PrecompileExceptDef.setIncludes
public void setIncludes(final String includes) { if (this.localSet == null) { this.localSet = new ConditionalFileSet(); this.owner.appendExceptFileSet(this.localSet); } this.localSet.setIncludes(includes); }
java
public void setIncludes(final String includes) { if (this.localSet == null) { this.localSet = new ConditionalFileSet(); this.owner.appendExceptFileSet(this.localSet); } this.localSet.setIncludes(includes); }
[ "public", "void", "setIncludes", "(", "final", "String", "includes", ")", "{", "if", "(", "this", ".", "localSet", "==", "null", ")", "{", "this", ".", "localSet", "=", "new", "ConditionalFileSet", "(", ")", ";", "this", ".", "owner", ".", "appendExceptF...
Comma or space separated list of file patterns that should not be compiled using precompiled headers. @param includes the string containing the include patterns
[ "Comma", "or", "space", "separated", "list", "of", "file", "patterns", "that", "should", "not", "be", "compiled", "using", "precompiled", "headers", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/PrecompileExceptDef.java#L82-L88
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/DistributerMap.java
DistributerMap.setLocal
public void setLocal(final File value) { if (value == null) { throw new NullPointerException("value"); } if (value.exists() && !value.isDirectory()) { throw new BuildException("local should be a directory"); } this.localName = value; try { this.canonicalPath = this.localName.ge...
java
public void setLocal(final File value) { if (value == null) { throw new NullPointerException("value"); } if (value.exists() && !value.isDirectory()) { throw new BuildException("local should be a directory"); } this.localName = value; try { this.canonicalPath = this.localName.ge...
[ "public", "void", "setLocal", "(", "final", "File", "value", ")", "{", "if", "(", "value", "==", "null", ")", "{", "throw", "new", "NullPointerException", "(", "\"value\"", ")", ";", "}", "if", "(", "value", ".", "exists", "(", ")", "&&", "!", "value...
Sets local directory for base of mapping. @param value value
[ "Sets", "local", "directory", "for", "base", "of", "mapping", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/DistributerMap.java#L147-L160
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/DistributerMap.java
DistributerMap.toRemote
public String toRemote(final String host, final File localFile) { if (this.remoteName != null && (this.hosts == null || this.hosts.contains(host))) { try { final String canonical = localFile.getCanonicalPath(); if (canonical.startsWith(this.canonicalPath) && isActive()) { return th...
java
public String toRemote(final String host, final File localFile) { if (this.remoteName != null && (this.hosts == null || this.hosts.contains(host))) { try { final String canonical = localFile.getCanonicalPath(); if (canonical.startsWith(this.canonicalPath) && isActive()) { return th...
[ "public", "String", "toRemote", "(", "final", "String", "host", ",", "final", "File", "localFile", ")", "{", "if", "(", "this", ".", "remoteName", "!=", "null", "&&", "(", "this", ".", "hosts", "==", "null", "||", "this", ".", "hosts", ".", "contains",...
Converts the local file name to the remote name for the same file. @param host host @param localFile local file @return remote name for local file, null if unknown.
[ "Converts", "the", "local", "file", "name", "to", "the", "remote", "name", "for", "the", "same", "file", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/DistributerMap.java#L210-L223
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/trolltech/MetaObjectParser.java
MetaObjectParser.hasQObject
public static boolean hasQObject(final Reader reader) throws IOException { final MetaObjectParser parser = new MetaObjectParser(); parser.parse(reader); return parser.hasQObject; }
java
public static boolean hasQObject(final Reader reader) throws IOException { final MetaObjectParser parser = new MetaObjectParser(); parser.parse(reader); return parser.hasQObject; }
[ "public", "static", "boolean", "hasQObject", "(", "final", "Reader", "reader", ")", "throws", "IOException", "{", "final", "MetaObjectParser", "parser", "=", "new", "MetaObjectParser", "(", ")", ";", "parser", ".", "parse", "(", "reader", ")", ";", "return", ...
Determines if source file contains Q_OBJECT. @param reader Reader source reader @throws IOException if unable to read source file @return boolean true if source contains Q_OBJECT
[ "Determines", "if", "source", "file", "contains", "Q_OBJECT", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/trolltech/MetaObjectParser.java#L86-L91
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/AbstractDependencyMojo.java
AbstractDependencyMojo.getVerboseDependencyTree
protected org.eclipse.aether.graph.DependencyNode getVerboseDependencyTree () { // Create CollectRequest object that will be submitted to collect the dependencies CollectRequest collectReq = new CollectRequest(); // Get artifact this Maven project is attempting to build Artifact art = getMavenProject...
java
protected org.eclipse.aether.graph.DependencyNode getVerboseDependencyTree () { // Create CollectRequest object that will be submitted to collect the dependencies CollectRequest collectReq = new CollectRequest(); // Get artifact this Maven project is attempting to build Artifact art = getMavenProject...
[ "protected", "org", ".", "eclipse", ".", "aether", ".", "graph", ".", "DependencyNode", "getVerboseDependencyTree", "(", ")", "{", "// Create CollectRequest object that will be submitted to collect the dependencies", "CollectRequest", "collectReq", "=", "new", "CollectRequest",...
Gets the project's full dependency tree prior to dependency mediation. This is required if we want to know where to push libraries in the linker line. @return {@link org.eclipse.aether.graph.DependencyNode Root node} of the projects verbose dependency tree. @since 3.5.2
[ "Gets", "the", "project", "s", "full", "dependency", "tree", "prior", "to", "dependency", "mediation", ".", "This", "is", "required", "if", "we", "want", "to", "know", "where", "to", "push", "libraries", "in", "the", "linker", "line", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/AbstractDependencyMojo.java#L169-L205
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/AbstractDependencyMojo.java
AbstractDependencyMojo.getRootNodeDependecyTree
protected DependencyNode getRootNodeDependecyTree() throws MojoExecutionException{ try { ArtifactFilter artifactFilter = null; // works for only maven 3. Use of dependency graph component not handled for maven 2 // as current version of NAR already requires Maven 3.x rootNode = dependencyGr...
java
protected DependencyNode getRootNodeDependecyTree() throws MojoExecutionException{ try { ArtifactFilter artifactFilter = null; // works for only maven 3. Use of dependency graph component not handled for maven 2 // as current version of NAR already requires Maven 3.x rootNode = dependencyGr...
[ "protected", "DependencyNode", "getRootNodeDependecyTree", "(", ")", "throws", "MojoExecutionException", "{", "try", "{", "ArtifactFilter", "artifactFilter", "=", "null", ";", "// works for only maven 3. Use of dependency graph component not handled for maven 2", "// as current versi...
Get root node of the current Maven project Dependency tree generated by maven.shared dependency graph builder. @return root node of the project Dependency tree @throws MojoExecutionException
[ "Get", "root", "node", "of", "the", "current", "Maven", "project", "Dependency", "tree", "generated", "by", "maven", ".", "shared", "dependency", "graph", "builder", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/AbstractDependencyMojo.java#L494-L507
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/compiler/AbstractProcessor.java
AbstractProcessor.getIdentifier
protected static String getIdentifier(final String[] command, final String fallback) { String identifier = fallback; try { final String[] cmdout = CaptureStreamHandler.run(command); if (cmdout.length > 0) { identifier = cmdout[0]; } } catch (final Throwable ex) { identifier =...
java
protected static String getIdentifier(final String[] command, final String fallback) { String identifier = fallback; try { final String[] cmdout = CaptureStreamHandler.run(command); if (cmdout.length > 0) { identifier = cmdout[0]; } } catch (final Throwable ex) { identifier =...
[ "protected", "static", "String", "getIdentifier", "(", "final", "String", "[", "]", "command", ",", "final", "String", "fallback", ")", "{", "String", "identifier", "=", "fallback", ";", "try", "{", "final", "String", "[", "]", "cmdout", "=", "CaptureStreamH...
Determines the identification of a command line processor by capture the first line of its output for a specific command. @param command array of command line arguments starting with executable name. For example, { "cl" } @param fallback start of identifier if there is an error in executing the command @return identif...
[ "Determines", "the", "identification", "of", "a", "command", "line", "processor", "by", "capture", "the", "first", "line", "of", "its", "output", "for", "a", "specific", "command", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/compiler/AbstractProcessor.java#L52-L63
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/Msvc.java
Msvc.registryGet32StringValue
private static String registryGet32StringValue(com.sun.jna.platform.win32.WinReg.HKEY root, String key, String value) throws com.sun.jna.platform.win32.Win32Exception { com.sun.jna.platform.win32.WinReg.HKEYByReference phkKey = new com.sun.jna.platform.win32.WinReg.HKEYByReference(); int rc = com.sun.jna....
java
private static String registryGet32StringValue(com.sun.jna.platform.win32.WinReg.HKEY root, String key, String value) throws com.sun.jna.platform.win32.Win32Exception { com.sun.jna.platform.win32.WinReg.HKEYByReference phkKey = new com.sun.jna.platform.win32.WinReg.HKEYByReference(); int rc = com.sun.jna....
[ "private", "static", "String", "registryGet32StringValue", "(", "com", ".", "sun", ".", "jna", ".", "platform", ".", "win32", ".", "WinReg", ".", "HKEY", "root", ",", "String", "key", ",", "String", "value", ")", "throws", "com", ".", "sun", ".", "jna", ...
Get a registry REG_SZ value. @param root Root key. @param key Registry path. @param value Name of the value to retrieve. @return String value.
[ "Get", "a", "registry", "REG_SZ", "value", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/Msvc.java#L505-L521
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/types/UndefineArgument.java
UndefineArgument.merge
public static UndefineArgument[] merge(final UndefineArgument[] base, final UndefineArgument[] override) { if (base.length == 0) { final UndefineArgument[] overrideClone = override.clone(); return overrideClone; } if (override.length == 0) { final UndefineArgument[] baseClone = base.clone(...
java
public static UndefineArgument[] merge(final UndefineArgument[] base, final UndefineArgument[] override) { if (base.length == 0) { final UndefineArgument[] overrideClone = override.clone(); return overrideClone; } if (override.length == 0) { final UndefineArgument[] baseClone = base.clone(...
[ "public", "static", "UndefineArgument", "[", "]", "merge", "(", "final", "UndefineArgument", "[", "]", "base", ",", "final", "UndefineArgument", "[", "]", "override", ")", "{", "if", "(", "base", ".", "length", "==", "0", ")", "{", "final", "UndefineArgume...
This method returns an array of UndefineArgument and DefineArgument's by merging a base list with an override list. Any define in the base list with a name that appears in the override list is suppressed. All entries in the override list are preserved
[ "This", "method", "returns", "an", "array", "of", "UndefineArgument", "and", "DefineArgument", "s", "by", "merging", "a", "base", "list", "with", "an", "override", "list", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/types/UndefineArgument.java#L45-L78
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/compiler/CaptureStreamHandler.java
CaptureStreamHandler.run
public static String[] run(final String[] cmdline) { final CaptureStreamHandler handler = execute(cmdline); return handler.getOutput() != null ? handler.getOutput() : new String[0]; }
java
public static String[] run(final String[] cmdline) { final CaptureStreamHandler handler = execute(cmdline); return handler.getOutput() != null ? handler.getOutput() : new String[0]; }
[ "public", "static", "String", "[", "]", "run", "(", "final", "String", "[", "]", "cmdline", ")", "{", "final", "CaptureStreamHandler", "handler", "=", "execute", "(", "cmdline", ")", ";", "return", "handler", ".", "getOutput", "(", ")", "!=", "null", "?"...
Runs an executable and captures the output in a String array @param cmdline command line arguments @return output of process @see CaptureStreamHandler#getOutput()
[ "Runs", "an", "executable", "and", "captures", "the", "output", "in", "a", "String", "array" ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/compiler/CaptureStreamHandler.java#L104-L107
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/compiler/CaptureStreamHandler.java
CaptureStreamHandler.gatherOutput
public void gatherOutput() { try { final Copier errorCopier = new Copier(this.processErrorStream); final Copier outputCopier = new Copier(this.processOutputStream); errorCopier.start(); outputCopier.start(); errorCopier.join(); outputCopier.join(); this.stderr = new String[...
java
public void gatherOutput() { try { final Copier errorCopier = new Copier(this.processErrorStream); final Copier outputCopier = new Copier(this.processOutputStream); errorCopier.start(); outputCopier.start(); errorCopier.join(); outputCopier.join(); this.stderr = new String[...
[ "public", "void", "gatherOutput", "(", ")", "{", "try", "{", "final", "Copier", "errorCopier", "=", "new", "Copier", "(", "this", ".", "processErrorStream", ")", ";", "final", "Copier", "outputCopier", "=", "new", "Copier", "(", "this", ".", "processOutputSt...
Reads concurrently both the process standard output and standard error. The standard error is copied to the stderr string array field. The standard output is copied to the stdout string array field. Both fields are set to an empty array in case of any error.
[ "Reads", "concurrently", "both", "the", "process", "standard", "output", "and", "standard", "error", ".", "The", "standard", "error", "is", "copied", "to", "the", "stderr", "string", "array", "field", ".", "The", "standard", "output", "is", "copied", "to", "...
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/compiler/CaptureStreamHandler.java#L126-L141
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/borland/BorlandProcessor.java
BorlandProcessor.getEnvironmentPath
public static File[] getEnvironmentPath(final String toolName, final char switchChar, final String[] defaultRelativePath) { if (toolName == null) { throw new NullPointerException("toolName"); } if (defaultRelativePath == null) { throw new NullPointerException("defaultRelativePath"); } ...
java
public static File[] getEnvironmentPath(final String toolName, final char switchChar, final String[] defaultRelativePath) { if (toolName == null) { throw new NullPointerException("toolName"); } if (defaultRelativePath == null) { throw new NullPointerException("defaultRelativePath"); } ...
[ "public", "static", "File", "[", "]", "getEnvironmentPath", "(", "final", "String", "toolName", ",", "final", "char", "switchChar", ",", "final", "String", "[", "]", "defaultRelativePath", ")", "{", "if", "(", "toolName", "==", "null", ")", "{", "throw", "...
This method extracts path information from the appropriate .cfg file in the install directory. @param toolName Tool name, for example, "bcc32", "brc32", "ilink32" @param switchChar Command line switch character, for example "L" for libraries @param defaultRelativePath default path relative to executable directory @ret...
[ "This", "method", "extracts", "path", "information", "from", "the", "appropriate", ".", "cfg", "file", "in", "the", "install", "directory", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/borland/BorlandProcessor.java#L74-L135
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/gcc/cross/GppLinker.java
GppLinker.decorateLinkerOption
@Override public String decorateLinkerOption(final StringBuffer buf, final String arg) { String decoratedArg = arg; if (arg.length() > 1 && arg.charAt(0) == '-') { switch (arg.charAt(1)) { // // passed automatically by GCC // case 'g': case 'f': case 'F': ...
java
@Override public String decorateLinkerOption(final StringBuffer buf, final String arg) { String decoratedArg = arg; if (arg.length() > 1 && arg.charAt(0) == '-') { switch (arg.charAt(1)) { // // passed automatically by GCC // case 'g': case 'f': case 'F': ...
[ "@", "Override", "public", "String", "decorateLinkerOption", "(", "final", "StringBuffer", "buf", ",", "final", "String", "arg", ")", "{", "String", "decoratedArg", "=", "arg", ";", "if", "(", "arg", ".", "length", "(", ")", ">", "1", "&&", "arg", ".", ...
Allows drived linker to decorate linker option. Override by GppLinker to prepend a "-Wl," to pass option to through gcc to linker. @param buf buffer that may be used and abused in the decoration process, must not be null. @param arg linker argument
[ "Allows", "drived", "linker", "to", "decorate", "linker", "option", ".", "Override", "by", "GppLinker", "to", "prepend", "a", "-", "Wl", "to", "pass", "option", "to", "through", "gcc", "to", "linker", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/gcc/cross/GppLinker.java#L128-L165
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/NarManager.java
NarManager.getAttachedNarDependencies
public final List/* <AttachedNarArtifact> */getAttachedNarDependencies(final List/* * < * NarArtifacts ...
java
public final List/* <AttachedNarArtifact> */getAttachedNarDependencies(final List/* * < * NarArtifacts ...
[ "public", "final", "List", "/* <AttachedNarArtifact> */", "getAttachedNarDependencies", "(", "final", "List", "/*\n * <\n * NarArtifac...
Returns a list of all attached nar dependencies for a specific binding and "noarch", but not where "local" is specified @param scope compile, test, runtime, .... @param aol either a valid aol, noarch or null. In case of null both the default getAOL() and noarch dependencies are returned. @param type noarch, static, sh...
[ "Returns", "a", "list", "of", "all", "attached", "nar", "dependencies", "for", "a", "specific", "binding", "and", "noarch", "but", "not", "where", "local", "is", "specified" ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/NarManager.java#L164-L197
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/mozilla/XpidlCompiler.java
XpidlCompiler.compile
@Override public void compile(final CCTask task, final File outputDir, final String[] sourceFiles, final String[] args, final String[] endArgs, final boolean relentless, final CommandLineCompilerConfiguration config, final ProgressMonitor monitor) { BuildException exc = null; final String[] thisS...
java
@Override public void compile(final CCTask task, final File outputDir, final String[] sourceFiles, final String[] args, final String[] endArgs, final boolean relentless, final CommandLineCompilerConfiguration config, final ProgressMonitor monitor) { BuildException exc = null; final String[] thisS...
[ "@", "Override", "public", "void", "compile", "(", "final", "CCTask", "task", ",", "final", "File", "outputDir", ",", "final", "String", "[", "]", "sourceFiles", ",", "final", "String", "[", "]", "args", ",", "final", "String", "[", "]", "endArgs", ",", ...
Compiles an .idl file into the corresponding .h and .xpt files. @param task current cc task @param outputDir output directory @param sourceFiles source files @param args command line arguments that appear before input files @param endArgs command line arguments that appear after input files @param relentless if true, ...
[ "Compiles", "an", ".", "idl", "file", "into", "the", "corresponding", ".", "h", "and", ".", "xpt", "files", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/mozilla/XpidlCompiler.java#L183-L253
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/borland/CBuilderXProjectWriter.java
CBuilderXProjectWriter.getActivePlatform
private String getActivePlatform(final CCTask task) { final String osName = System.getProperty("os.name").toLowerCase(Locale.US); if (osName.contains("windows")) { return "win32"; } return "linux"; }
java
private String getActivePlatform(final CCTask task) { final String osName = System.getProperty("os.name").toLowerCase(Locale.US); if (osName.contains("windows")) { return "win32"; } return "linux"; }
[ "private", "String", "getActivePlatform", "(", "final", "CCTask", "task", ")", "{", "final", "String", "osName", "=", "System", ".", "getProperty", "(", "\"os.name\"", ")", ".", "toLowerCase", "(", "Locale", ".", "US", ")", ";", "if", "(", "osName", ".", ...
Gets active platform. @param task CCTask cc task @return String platform identifier
[ "Gets", "active", "platform", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/borland/CBuilderXProjectWriter.java#L117-L123
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/borland/CBuilderXProjectWriter.java
CBuilderXProjectWriter.getBuildType
private String getBuildType(final CCTask task) { final String outType = task.getOuttype(); if ("executable".equals(outType)) { return "exeproject"; } else if ("static".equals(outType)) { return "libraryproject"; } return "dllproject"; }
java
private String getBuildType(final CCTask task) { final String outType = task.getOuttype(); if ("executable".equals(outType)) { return "exeproject"; } else if ("static".equals(outType)) { return "libraryproject"; } return "dllproject"; }
[ "private", "String", "getBuildType", "(", "final", "CCTask", "task", ")", "{", "final", "String", "outType", "=", "task", ".", "getOuttype", "(", ")", ";", "if", "(", "\"executable\"", ".", "equals", "(", "outType", ")", ")", "{", "return", "\"exeproject\"...
Gets build type from link target. @param task CCTask current task @return String build type
[ "Gets", "build", "type", "from", "link", "target", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/borland/CBuilderXProjectWriter.java#L165-L173
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/borland/CBuilderXProjectWriter.java
CBuilderXProjectWriter.writeCompileOptions
private void writeCompileOptions(final String baseDir, final PropertyWriter writer, final CommandLineCompilerConfiguration compilerConfig) throws SAXException { boolean isBcc = false; boolean isUnix = true; String compileID = "linux.Debug_Build.gnuc++.g++compile"; if (compilerConfig.getCompiler() ...
java
private void writeCompileOptions(final String baseDir, final PropertyWriter writer, final CommandLineCompilerConfiguration compilerConfig) throws SAXException { boolean isBcc = false; boolean isUnix = true; String compileID = "linux.Debug_Build.gnuc++.g++compile"; if (compilerConfig.getCompiler() ...
[ "private", "void", "writeCompileOptions", "(", "final", "String", "baseDir", ",", "final", "PropertyWriter", "writer", ",", "final", "CommandLineCompilerConfiguration", "compilerConfig", ")", "throws", "SAXException", "{", "boolean", "isBcc", "=", "false", ";", "boole...
Writes elements corresponding to compilation options. @param baseDir String base directory @param writer PropertyWriter property writer @param compilerConfig representative configuration @throws SAXException if I/O error or illegal content
[ "Writes", "elements", "corresponding", "to", "compilation", "options", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/borland/CBuilderXProjectWriter.java#L194-L245
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/borland/CBuilderXProjectWriter.java
CBuilderXProjectWriter.writeIlinkArgs
private void writeIlinkArgs(final PropertyWriter writer, final String linkID, final String[] args) throws SAXException { for (final String arg : args) { if (arg.charAt(0) == '/' || arg.charAt(0) == '-') { final int equalsPos = arg.indexOf('='); if (equalsPos > 0) { final String...
java
private void writeIlinkArgs(final PropertyWriter writer, final String linkID, final String[] args) throws SAXException { for (final String arg : args) { if (arg.charAt(0) == '/' || arg.charAt(0) == '-') { final int equalsPos = arg.indexOf('='); if (equalsPos > 0) { final String...
[ "private", "void", "writeIlinkArgs", "(", "final", "PropertyWriter", "writer", ",", "final", "String", "linkID", ",", "final", "String", "[", "]", "args", ")", "throws", "SAXException", "{", "for", "(", "final", "String", "arg", ":", "args", ")", "{", "if"...
Writes ilink32 linker options to project file. @param writer PropertyWriter property writer @param linkID String linker identifier @param preArgs String[] linker arguments @throws SAXException thrown if unable to write option
[ "Writes", "ilink32", "linker", "options", "to", "project", "file", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/borland/CBuilderXProjectWriter.java#L259-L273
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/borland/CBuilderXProjectWriter.java
CBuilderXProjectWriter.writeLdArgs
private void writeLdArgs(final PropertyWriter writer, final String linkID, final String[] preArgs) throws SAXException { int objnameIndex = 1; int libnameIndex = 1; int libpathIndex = 1; for (final String preArg : preArgs) { if (preArg.startsWith("-o")) { writer.write(linkID, "option...
java
private void writeLdArgs(final PropertyWriter writer, final String linkID, final String[] preArgs) throws SAXException { int objnameIndex = 1; int libnameIndex = 1; int libpathIndex = 1; for (final String preArg : preArgs) { if (preArg.startsWith("-o")) { writer.write(linkID, "option...
[ "private", "void", "writeLdArgs", "(", "final", "PropertyWriter", "writer", ",", "final", "String", "linkID", ",", "final", "String", "[", "]", "preArgs", ")", "throws", "SAXException", "{", "int", "objnameIndex", "=", "1", ";", "int", "libnameIndex", "=", "...
Writes ld linker options to project file. @param writer PropertyWriter property writer @param linkID String linker identifier @param preArgs String[] linker arguments @throws SAXException thrown if unable to write option
[ "Writes", "ld", "linker", "options", "to", "project", "file", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/borland/CBuilderXProjectWriter.java#L287-L315
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/borland/CBuilderXProjectWriter.java
CBuilderXProjectWriter.writeLinkOptions
private void writeLinkOptions(final String baseDir, final PropertyWriter writer, final TargetInfo linkTarget) throws SAXException { if (linkTarget != null) { final ProcessorConfiguration config = linkTarget.getConfiguration(); if (config instanceof CommandLineLinkerConfiguration) { final C...
java
private void writeLinkOptions(final String baseDir, final PropertyWriter writer, final TargetInfo linkTarget) throws SAXException { if (linkTarget != null) { final ProcessorConfiguration config = linkTarget.getConfiguration(); if (config instanceof CommandLineLinkerConfiguration) { final C...
[ "private", "void", "writeLinkOptions", "(", "final", "String", "baseDir", ",", "final", "PropertyWriter", "writer", ",", "final", "TargetInfo", "linkTarget", ")", "throws", "SAXException", "{", "if", "(", "linkTarget", "!=", "null", ")", "{", "final", "Processor...
Writes elements corresponding to link options. @param baseDir String base directory @param writer PropertyWriter property writer @param linkTarget TargetInfo link target @throws SAXException if I/O error or illegal content
[ "Writes", "elements", "corresponding", "to", "link", "options", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/borland/CBuilderXProjectWriter.java#L329-L358
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/openwatcom/OpenWatcomCompiler.java
OpenWatcomCompiler.addImpliedArgs
@Override protected final void addImpliedArgs(final Vector<String> args, final boolean debug, final boolean multithreaded, final boolean exceptions, final LinkType linkType, final Boolean rtti, final OptimizationEnum optimization) { args.addElement("/c"); if (exceptions) { args.addElement("/xs"); ...
java
@Override protected final void addImpliedArgs(final Vector<String> args, final boolean debug, final boolean multithreaded, final boolean exceptions, final LinkType linkType, final Boolean rtti, final OptimizationEnum optimization) { args.addElement("/c"); if (exceptions) { args.addElement("/xs"); ...
[ "@", "Override", "protected", "final", "void", "addImpliedArgs", "(", "final", "Vector", "<", "String", ">", "args", ",", "final", "boolean", "debug", ",", "final", "boolean", "multithreaded", ",", "final", "boolean", "exceptions", ",", "final", "LinkType", "l...
Add implied arguments. @param args Vector command line arguments @param debug boolean is debug @param multithreaded boolean multithreaderd @param exceptions boolean support exceptions @param linkType LinkType link type @param rtti Boolean run time type information @param optimization OptimizationEnum
[ "Add", "implied", "arguments", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/openwatcom/OpenWatcomCompiler.java#L78-L106
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/openwatcom/OpenWatcomCompiler.java
OpenWatcomCompiler.addWarningSwitch
@Override protected final void addWarningSwitch(final Vector<String> args, final int level) { OpenWatcomProcessor.addWarningSwitch(args, level); }
java
@Override protected final void addWarningSwitch(final Vector<String> args, final int level) { OpenWatcomProcessor.addWarningSwitch(args, level); }
[ "@", "Override", "protected", "final", "void", "addWarningSwitch", "(", "final", "Vector", "<", "String", ">", "args", ",", "final", "int", "level", ")", "{", "OpenWatcomProcessor", ".", "addWarningSwitch", "(", "args", ",", "level", ")", ";", "}" ]
Add warning switch. @param args Vector command line arguments @param level int warning level
[ "Add", "warning", "switch", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/openwatcom/OpenWatcomCompiler.java#L116-L119
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/openwatcom/OpenWatcomCompiler.java
OpenWatcomCompiler.getDefineSwitch
@Override protected final void getDefineSwitch(final StringBuffer buffer, final String define, final String value) { OpenWatcomProcessor.getDefineSwitch(buffer, define, value); }
java
@Override protected final void getDefineSwitch(final StringBuffer buffer, final String define, final String value) { OpenWatcomProcessor.getDefineSwitch(buffer, define, value); }
[ "@", "Override", "protected", "final", "void", "getDefineSwitch", "(", "final", "StringBuffer", "buffer", ",", "final", "String", "define", ",", "final", "String", "value", ")", "{", "OpenWatcomProcessor", ".", "getDefineSwitch", "(", "buffer", ",", "define", ",...
Get define switch. @param buffer StringBuffer buffer @param define String preprocessor macro @param value String value, may be null.
[ "Get", "define", "switch", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/openwatcom/OpenWatcomCompiler.java#L145-L148
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/openwatcom/OpenWatcomCompiler.java
OpenWatcomCompiler.getUndefineSwitch
@Override protected final void getUndefineSwitch(final StringBuffer buffer, final String define) { OpenWatcomProcessor.getUndefineSwitch(buffer, define); }
java
@Override protected final void getUndefineSwitch(final StringBuffer buffer, final String define) { OpenWatcomProcessor.getUndefineSwitch(buffer, define); }
[ "@", "Override", "protected", "final", "void", "getUndefineSwitch", "(", "final", "StringBuffer", "buffer", ",", "final", "String", "define", ")", "{", "OpenWatcomProcessor", ".", "getUndefineSwitch", "(", "buffer", ",", "define", ")", ";", "}" ]
Get undefine switch. @param buffer StringBuffer argument destination @param define String preprocessor macro
[ "Get", "undefine", "switch", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/openwatcom/OpenWatcomCompiler.java#L190-L193
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/CCTask.java
CCTask.getTargetsToBuildByConfiguration
public static Map<CompilerConfiguration, Vector<TargetInfo>> getTargetsToBuildByConfiguration( final Map<String, TargetInfo> targets) { final Map<CompilerConfiguration, Vector<TargetInfo>> targetsByConfig = new HashMap<>(); for (final TargetInfo target : targets.values()) { if (target.getRebuild()) ...
java
public static Map<CompilerConfiguration, Vector<TargetInfo>> getTargetsToBuildByConfiguration( final Map<String, TargetInfo> targets) { final Map<CompilerConfiguration, Vector<TargetInfo>> targetsByConfig = new HashMap<>(); for (final TargetInfo target : targets.values()) { if (target.getRebuild()) ...
[ "public", "static", "Map", "<", "CompilerConfiguration", ",", "Vector", "<", "TargetInfo", ">", ">", "getTargetsToBuildByConfiguration", "(", "final", "Map", "<", "String", ",", "TargetInfo", ">", "targets", ")", "{", "final", "Map", "<", "CompilerConfiguration", ...
Builds a Hashtable to targets needing to be rebuilt keyed by compiler configuration
[ "Builds", "a", "Hashtable", "to", "targets", "needing", "to", "be", "rebuilt", "keyed", "by", "compiler", "configuration" ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/CCTask.java#L217-L234
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/CCTask.java
CCTask.addConfiguredCompiler
public void addConfiguredCompiler(final CompilerDef compiler) { if (compiler == null) { throw new NullPointerException("compiler"); } compiler.setProject(getProject()); this._compilers.addElement(compiler); }
java
public void addConfiguredCompiler(final CompilerDef compiler) { if (compiler == null) { throw new NullPointerException("compiler"); } compiler.setProject(getProject()); this._compilers.addElement(compiler); }
[ "public", "void", "addConfiguredCompiler", "(", "final", "CompilerDef", "compiler", ")", "{", "if", "(", "compiler", "==", "null", ")", "{", "throw", "new", "NullPointerException", "(", "\"compiler\"", ")", ";", "}", "compiler", ".", "setProject", "(", "getPro...
Adds a compiler definition or reference. @param compiler compiler @throws NullPointerException if compiler is null
[ "Adds", "a", "compiler", "definition", "or", "reference", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/CCTask.java#L327-L333
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/CCTask.java
CCTask.addConfiguredLinker
public void addConfiguredLinker(final LinkerDef linker) { if (linker == null) { throw new NullPointerException("linker"); } linker.setProject(getProject()); this._linkers.addElement(linker); }
java
public void addConfiguredLinker(final LinkerDef linker) { if (linker == null) { throw new NullPointerException("linker"); } linker.setProject(getProject()); this._linkers.addElement(linker); }
[ "public", "void", "addConfiguredLinker", "(", "final", "LinkerDef", "linker", ")", "{", "if", "(", "linker", "==", "null", ")", "{", "throw", "new", "NullPointerException", "(", "\"linker\"", ")", ";", "}", "linker", ".", "setProject", "(", "getProject", "("...
Adds a linker definition. The first linker that is not disqualified by its "if" and "unless" attributes will perform the link. If no child linker element is active, the linker implied by the cc elements name or classname attribute will be used. @param linker linker @throws NullPointerException if linker is null
[ "Adds", "a", "linker", "definition", ".", "The", "first", "linker", "that", "is", "not", "disqualified", "by", "its", "if", "and", "unless", "attributes", "will", "perform", "the", "link", ".", "If", "no", "child", "linker", "element", "is", "active", "the...
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/CCTask.java#L382-L388
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/CCTask.java
CCTask.checkForChangedIncludeFiles
protected int checkForChangedIncludeFiles(final Map<String, TargetInfo> targets) { int potentialTargets = 0; int definiteTargets = 0; Iterator<TargetInfo> targetEnum = targets.values().iterator(); while (targetEnum.hasNext()) { final TargetInfo target = targetEnum.next(); if (!target.getRebu...
java
protected int checkForChangedIncludeFiles(final Map<String, TargetInfo> targets) { int potentialTargets = 0; int definiteTargets = 0; Iterator<TargetInfo> targetEnum = targets.values().iterator(); while (targetEnum.hasNext()) { final TargetInfo target = targetEnum.next(); if (!target.getRebu...
[ "protected", "int", "checkForChangedIncludeFiles", "(", "final", "Map", "<", "String", ",", "TargetInfo", ">", "targets", ")", "{", "int", "potentialTargets", "=", "0", ";", "int", "definiteTargets", "=", "0", ";", "Iterator", "<", "TargetInfo", ">", "targetEn...
Checks all targets that are not forced to be rebuilt or are missing object files to be checked for modified include files @return total number of targets to be rebuilt
[ "Checks", "all", "targets", "that", "are", "not", "forced", "to", "be", "rebuilt", "or", "are", "missing", "object", "files", "to", "be", "checked", "for", "modified", "include", "files" ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/CCTask.java#L512-L562
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/CCTask.java
CCTask.setName
public void setName(final CompilerEnum name) { this.compilerDef.setName(name); final Processor compiler = this.compilerDef.getProcessor(); final Linker linker = compiler.getLinker(this.linkType); this.linkerDef.setProcessor(linker); }
java
public void setName(final CompilerEnum name) { this.compilerDef.setName(name); final Processor compiler = this.compilerDef.getProcessor(); final Linker linker = compiler.getLinker(this.linkType); this.linkerDef.setProcessor(linker); }
[ "public", "void", "setName", "(", "final", "CompilerEnum", "name", ")", "{", "this", ".", "compilerDef", ".", "setName", "(", "name", ")", ";", "final", "Processor", "compiler", "=", "this", ".", "compilerDef", ".", "getProcessor", "(", ")", ";", "final", ...
Sets type of the default compiler and linker. <table width="100%" border="1"> <thead>Supported compilers </thead> <tr> <td>gcc (default)</td> <td>GCC C++ compiler</td> </tr> <tr> <td>g++</td> <td>GCC C++ compiler</td> </tr> <tr> <td>c++</td> <td>GCC C++ compiler</td> </tr> <tr> <td>g77</td> <td>GNU FORTRAN compiler</t...
[ "Sets", "type", "of", "the", "default", "compiler", "and", "linker", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/CCTask.java#L1619-L1624
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/CCTask.java
CCTask.setNewenvironment
public void setNewenvironment(final boolean newenv) { this.compilerDef.setNewenvironment(newenv); for (int i = 0; i < this._compilers.size(); i++) { final CompilerDef currentCompilerDef = this._compilers.elementAt(i); currentCompilerDef.setNewenvironment(newenv); } this.linkerDef.setNewenvir...
java
public void setNewenvironment(final boolean newenv) { this.compilerDef.setNewenvironment(newenv); for (int i = 0; i < this._compilers.size(); i++) { final CompilerDef currentCompilerDef = this._compilers.elementAt(i); currentCompilerDef.setNewenvironment(newenv); } this.linkerDef.setNewenvir...
[ "public", "void", "setNewenvironment", "(", "final", "boolean", "newenv", ")", "{", "this", ".", "compilerDef", ".", "setNewenvironment", "(", "newenv", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "_compilers", ".", "size", ...
Do not propagate old environment when new environment variables are specified.
[ "Do", "not", "propagate", "old", "environment", "when", "new", "environment", "variables", "are", "specified", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/CCTask.java#L1630-L1637
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/CCTask.java
CCTask.setOutfile
public void setOutfile(final File outfile) { // // if file name was empty, skip link step // if (outfile == null || outfile.toString().length() > 0) { this._outfile = outfile; } }
java
public void setOutfile(final File outfile) { // // if file name was empty, skip link step // if (outfile == null || outfile.toString().length() > 0) { this._outfile = outfile; } }
[ "public", "void", "setOutfile", "(", "final", "File", "outfile", ")", "{", "//", "// if file name was empty, skip link step", "//", "if", "(", "outfile", "==", "null", "||", "outfile", ".", "toString", "(", ")", ".", "length", "(", ")", ">", "0", ")", "{",...
Sets the output file name. If not specified, the task will only compile files and not attempt to link. If an extension is not specified, the task may use a system appropriate extension and prefix, for example, outfile="example" may result in "libexample.so" being created. @param outfile output file name
[ "Sets", "the", "output", "file", "name", ".", "If", "not", "specified", "the", "task", "will", "only", "compile", "files", "and", "not", "attempt", "to", "link", ".", "If", "an", "extension", "is", "not", "specified", "the", "task", "may", "use", "a", ...
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/CCTask.java#L1673-L1680
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/CCTask.java
CCTask.setProject
@Override public void setProject(final Project project) { super.setProject(project); this.compilerDef.setProject(project); this.linkerDef.setProject(project); }
java
@Override public void setProject(final Project project) { super.setProject(project); this.compilerDef.setProject(project); this.linkerDef.setProject(project); }
[ "@", "Override", "public", "void", "setProject", "(", "final", "Project", "project", ")", "{", "super", ".", "setProject", "(", "project", ")", ";", "this", ".", "compilerDef", ".", "setProject", "(", "project", ")", ";", "this", ".", "linkerDef", ".", "...
Sets the project.
[ "Sets", "the", "project", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/CCTask.java#L1703-L1708
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/VersionInfo.java
VersionInfo.merge
public VersionInfo merge() { if (isReference()) { final VersionInfo refVersion = (VersionInfo) getCheckedRef(VersionInfo.class, "VersionInfo"); return refVersion.merge(); } Reference currentRef = this.getExtends(); if (currentRef == null) { return this; } final Vector<VersionIn...
java
public VersionInfo merge() { if (isReference()) { final VersionInfo refVersion = (VersionInfo) getCheckedRef(VersionInfo.class, "VersionInfo"); return refVersion.merge(); } Reference currentRef = this.getExtends(); if (currentRef == null) { return this; } final Vector<VersionIn...
[ "public", "VersionInfo", "merge", "(", ")", "{", "if", "(", "isReference", "(", ")", ")", "{", "final", "VersionInfo", "refVersion", "=", "(", "VersionInfo", ")", "getCheckedRef", "(", "VersionInfo", ".", "class", ",", "\"VersionInfo\"", ")", ";", "return", ...
Returns a VersionInfo that reflects any inherited version information. @return merged version information. \
[ "Returns", "a", "VersionInfo", "that", "reflects", "any", "inherited", "version", "information", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/VersionInfo.java#L412-L440
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/openwatcom/OpenWatcomProcessor.java
OpenWatcomProcessor.getOutputFileSwitch
public static String[] getOutputFileSwitch(final String outPath) { final StringBuffer buf = new StringBuffer("/fo="); if (outPath.indexOf(' ') >= 0) { buf.append('\"'); buf.append(outPath); buf.append('\"'); } else { buf.append(outPath); } final String[] retval = new String[]...
java
public static String[] getOutputFileSwitch(final String outPath) { final StringBuffer buf = new StringBuffer("/fo="); if (outPath.indexOf(' ') >= 0) { buf.append('\"'); buf.append(outPath); buf.append('\"'); } else { buf.append(outPath); } final String[] retval = new String[]...
[ "public", "static", "String", "[", "]", "getOutputFileSwitch", "(", "final", "String", "outPath", ")", "{", "final", "StringBuffer", "buf", "=", "new", "StringBuffer", "(", "\"/fo=\"", ")", ";", "if", "(", "outPath", ".", "indexOf", "(", "'", "'", ")", "...
Builds command line options to specify the output file names. @param outPath String path to output file @return String[] command line options
[ "Builds", "command", "line", "options", "to", "specify", "the", "output", "file", "names", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/openwatcom/OpenWatcomProcessor.java#L142-L155
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/openwatcom/OpenWatcomFortranLinker.java
OpenWatcomFortranLinker.getLinker
@Override public Linker getLinker(final LinkType type) { if (type.isStaticLibrary()) { return OpenWatcomLibrarian.getInstance(); } if (type.isSharedLibrary()) { return DLL_LINKER; } return INSTANCE; }
java
@Override public Linker getLinker(final LinkType type) { if (type.isStaticLibrary()) { return OpenWatcomLibrarian.getInstance(); } if (type.isSharedLibrary()) { return DLL_LINKER; } return INSTANCE; }
[ "@", "Override", "public", "Linker", "getLinker", "(", "final", "LinkType", "type", ")", "{", "if", "(", "type", ".", "isStaticLibrary", "(", ")", ")", "{", "return", "OpenWatcomLibrarian", ".", "getInstance", "(", ")", ";", "}", "if", "(", "type", ".", ...
Get linker. @param type LinkType link type @return Linker linker
[ "Get", "linker", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/openwatcom/OpenWatcomFortranLinker.java#L66-L75
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/DistributerDef.java
DistributerDef.createMap
public DistributerMap createMap() { final DistributerMap map = new DistributerMap(); map.setProject(getProject()); this.maps.addElement(map); return map; }
java
public DistributerMap createMap() { final DistributerMap map = new DistributerMap(); map.setProject(getProject()); this.maps.addElement(map); return map; }
[ "public", "DistributerMap", "createMap", "(", ")", "{", "final", "DistributerMap", "map", "=", "new", "DistributerMap", "(", ")", ";", "map", ".", "setProject", "(", "getProject", "(", ")", ")", ";", "this", ".", "maps", ".", "addElement", "(", "map", ")...
Local to remote filename maps. @return new map
[ "Local", "to", "remote", "filename", "maps", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/DistributerDef.java#L81-L86
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/DistributerDef.java
DistributerDef.getHosts
public String getHosts() { if (isReference()) { final DistributerDef refDistributer = (DistributerDef) getCheckedRef(DistributerDef.class, "DistributerDef"); return refDistributer.getHosts(); } return this.hosts; }
java
public String getHosts() { if (isReference()) { final DistributerDef refDistributer = (DistributerDef) getCheckedRef(DistributerDef.class, "DistributerDef"); return refDistributer.getHosts(); } return this.hosts; }
[ "public", "String", "getHosts", "(", ")", "{", "if", "(", "isReference", "(", ")", ")", "{", "final", "DistributerDef", "refDistributer", "=", "(", "DistributerDef", ")", "getCheckedRef", "(", "DistributerDef", ".", "class", ",", "\"DistributerDef\"", ")", ";"...
Gets hosts. @return hosts, may be null.
[ "Gets", "hosts", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/DistributerDef.java#L101-L107
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/DistributerDef.java
DistributerDef.getProtocol
public DistributerProtocolEnum getProtocol() { if (isReference()) { final DistributerDef refDistributer = (DistributerDef) getCheckedRef(DistributerDef.class, "DistributerDef"); return refDistributer.getProtocol(); } return this.protocol; }
java
public DistributerProtocolEnum getProtocol() { if (isReference()) { final DistributerDef refDistributer = (DistributerDef) getCheckedRef(DistributerDef.class, "DistributerDef"); return refDistributer.getProtocol(); } return this.protocol; }
[ "public", "DistributerProtocolEnum", "getProtocol", "(", ")", "{", "if", "(", "isReference", "(", ")", ")", "{", "final", "DistributerDef", "refDistributer", "=", "(", "DistributerDef", ")", "getCheckedRef", "(", "DistributerDef", ".", "class", ",", "\"Distributer...
Gets protocol. @return protocol, may be null.
[ "Gets", "protocol", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/DistributerDef.java#L115-L121
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/DistributerDef.java
DistributerDef.getTcpcork
public int getTcpcork() { if (isReference()) { final DistributerDef refDistributer = (DistributerDef) getCheckedRef(DistributerDef.class, "DistributerDef"); return refDistributer.getTcpcork(); } return this.tcpCork; }
java
public int getTcpcork() { if (isReference()) { final DistributerDef refDistributer = (DistributerDef) getCheckedRef(DistributerDef.class, "DistributerDef"); return refDistributer.getTcpcork(); } return this.tcpCork; }
[ "public", "int", "getTcpcork", "(", ")", "{", "if", "(", "isReference", "(", ")", ")", "{", "final", "DistributerDef", "refDistributer", "=", "(", "DistributerDef", ")", "getCheckedRef", "(", "DistributerDef", ".", "class", ",", "\"DistributerDef\"", ")", ";",...
Gets tcp cork. @return TCP_CORK value.
[ "Gets", "tcp", "cork", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/DistributerDef.java#L129-L135
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/compiler/CommandLineLinker.java
CommandLineLinker.link
public void link(final CCTask task, final File outputFile, final String[] sourceFiles, final CommandLineLinkerConfiguration config) throws BuildException { final File parentDir = new File(outputFile.getParent()); String parentPath; try { parentPath = parentDir.getCanonicalPath(); } catch (fi...
java
public void link(final CCTask task, final File outputFile, final String[] sourceFiles, final CommandLineLinkerConfiguration config) throws BuildException { final File parentDir = new File(outputFile.getParent()); String parentPath; try { parentPath = parentDir.getCanonicalPath(); } catch (fi...
[ "public", "void", "link", "(", "final", "CCTask", "task", ",", "final", "File", "outputFile", ",", "final", "String", "[", "]", "sourceFiles", ",", "final", "CommandLineLinkerConfiguration", "config", ")", "throws", "BuildException", "{", "final", "File", "paren...
Performs a link using a command line linker
[ "Performs", "a", "link", "using", "a", "command", "line", "linker" ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/compiler/CommandLineLinker.java#L333-L372
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/compiler/CommandLineLinker.java
CommandLineLinker.prepareFilename
protected String prepareFilename(final StringBuffer buf, final String outputDir, final String sourceFile) { // FREEHEP BEGIN exit if absolute path is too long. Max length on relative // paths in windows is even shorter. if (isWindows() && sourceFile.length() > this.maxPathLength) { throw new BuildExce...
java
protected String prepareFilename(final StringBuffer buf, final String outputDir, final String sourceFile) { // FREEHEP BEGIN exit if absolute path is too long. Max length on relative // paths in windows is even shorter. if (isWindows() && sourceFile.length() > this.maxPathLength) { throw new BuildExce...
[ "protected", "String", "prepareFilename", "(", "final", "StringBuffer", "buf", ",", "final", "String", "outputDir", ",", "final", "String", "sourceFile", ")", "{", "// FREEHEP BEGIN exit if absolute path is too long. Max length on relative", "// paths in windows is even shorter."...
Processes filename into argument form
[ "Processes", "filename", "into", "argument", "form" ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/compiler/CommandLineLinker.java#L427-L436
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/openwatcom/OpenWatcomLinker.java
OpenWatcomLinker.getLibraryPatterns
@Override public final String[] getLibraryPatterns(final String[] libnames, final LibraryTypeEnum libType) { return OpenWatcomProcessor.getLibraryPatterns(libnames, libType); }
java
@Override public final String[] getLibraryPatterns(final String[] libnames, final LibraryTypeEnum libType) { return OpenWatcomProcessor.getLibraryPatterns(libnames, libType); }
[ "@", "Override", "public", "final", "String", "[", "]", "getLibraryPatterns", "(", "final", "String", "[", "]", "libnames", ",", "final", "LibraryTypeEnum", "libType", ")", "{", "return", "OpenWatcomProcessor", ".", "getLibraryPatterns", "(", "libnames", ",", "l...
Get file selectors for libraries. @param libnames String[] @param libType LibraryTypeEnum @return String[]
[ "Get", "file", "selectors", "for", "libraries", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/openwatcom/OpenWatcomLinker.java#L210-L213
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/CompilerDef.java
CompilerDef.addConfiguredDefineset
public void addConfiguredDefineset(final DefineSet defs) { if (defs == null) { throw new NullPointerException("defs"); } if (isReference()) { throw noChildrenAllowed(); } this.defineSets.addElement(defs); }
java
public void addConfiguredDefineset(final DefineSet defs) { if (defs == null) { throw new NullPointerException("defs"); } if (isReference()) { throw noChildrenAllowed(); } this.defineSets.addElement(defs); }
[ "public", "void", "addConfiguredDefineset", "(", "final", "DefineSet", "defs", ")", "{", "if", "(", "defs", "==", "null", ")", "{", "throw", "new", "NullPointerException", "(", "\"defs\"", ")", ";", "}", "if", "(", "isReference", "(", ")", ")", "{", "thr...
Adds a defineset.
[ "Adds", "a", "defineset", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/CompilerDef.java#L95-L103
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/CompilerDef.java
CompilerDef.createIncludePath
public IncludePath createIncludePath() { final Project p = getProject(); if (p == null) { throw new java.lang.IllegalStateException("project must be set"); } if (isReference()) { throw noChildrenAllowed(); } final IncludePath path = new IncludePath(p); this.includePaths.addElemen...
java
public IncludePath createIncludePath() { final Project p = getProject(); if (p == null) { throw new java.lang.IllegalStateException("project must be set"); } if (isReference()) { throw noChildrenAllowed(); } final IncludePath path = new IncludePath(p); this.includePaths.addElemen...
[ "public", "IncludePath", "createIncludePath", "(", ")", "{", "final", "Project", "p", "=", "getProject", "(", ")", ";", "if", "(", "p", "==", "null", ")", "{", "throw", "new", "java", ".", "lang", ".", "IllegalStateException", "(", "\"project must be set\"",...
Creates an include path.
[ "Creates", "an", "include", "path", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/CompilerDef.java#L108-L119
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/CompilerDef.java
CompilerDef.createPrecompile
public PrecompileDef createPrecompile() throws BuildException { final Project p = getProject(); if (isReference()) { throw noChildrenAllowed(); } final PrecompileDef precomp = new PrecompileDef(); precomp.setProject(p); this.precompileDefs.addElement(precomp); return precomp; }
java
public PrecompileDef createPrecompile() throws BuildException { final Project p = getProject(); if (isReference()) { throw noChildrenAllowed(); } final PrecompileDef precomp = new PrecompileDef(); precomp.setProject(p); this.precompileDefs.addElement(precomp); return precomp; }
[ "public", "PrecompileDef", "createPrecompile", "(", ")", "throws", "BuildException", "{", "final", "Project", "p", "=", "getProject", "(", ")", ";", "if", "(", "isReference", "(", ")", ")", "{", "throw", "noChildrenAllowed", "(", ")", ";", "}", "final", "P...
Specifies precompilation prototype file and exclusions.
[ "Specifies", "precompilation", "prototype", "file", "and", "exclusions", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/CompilerDef.java#L125-L134
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/CompilerDef.java
CompilerDef.createSysIncludePath
public SystemIncludePath createSysIncludePath() { final Project p = getProject(); if (p == null) { throw new java.lang.IllegalStateException("project must be set"); } if (isReference()) { throw noChildrenAllowed(); } final SystemIncludePath path = new SystemIncludePath(p); this.s...
java
public SystemIncludePath createSysIncludePath() { final Project p = getProject(); if (p == null) { throw new java.lang.IllegalStateException("project must be set"); } if (isReference()) { throw noChildrenAllowed(); } final SystemIncludePath path = new SystemIncludePath(p); this.s...
[ "public", "SystemIncludePath", "createSysIncludePath", "(", ")", "{", "final", "Project", "p", "=", "getProject", "(", ")", ";", "if", "(", "p", "==", "null", ")", "{", "throw", "new", "java", ".", "lang", ".", "IllegalStateException", "(", "\"project must b...
Creates a system include path. Locations and timestamps of files located using the system include paths are not used in dependency analysis. Standard include locations should not be specified. The compiler adapters should recognized the settings from the appropriate environment variables or configuration files.
[ "Creates", "a", "system", "include", "path", ".", "Locations", "and", "timestamps", "of", "files", "located", "using", "the", "system", "include", "paths", "are", "not", "used", "in", "dependency", "analysis", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/CompilerDef.java#L145-L156
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/CompilerDef.java
CompilerDef.setClassname
@Override public void setClassname(final String classname) throws BuildException { if (isReference()) { throw tooManyAttributes(); } super.setClassname(classname); final Processor proc = getProcessor(); if (!(proc instanceof Compiler)) { throw new BuildException(classname + " does not ...
java
@Override public void setClassname(final String classname) throws BuildException { if (isReference()) { throw tooManyAttributes(); } super.setClassname(classname); final Processor proc = getProcessor(); if (!(proc instanceof Compiler)) { throw new BuildException(classname + " does not ...
[ "@", "Override", "public", "void", "setClassname", "(", "final", "String", "classname", ")", "throws", "BuildException", "{", "if", "(", "isReference", "(", ")", ")", "{", "throw", "tooManyAttributes", "(", ")", ";", "}", "super", ".", "setClassname", "(", ...
Sets the default compiler adapter. Use the "name" attribute when the compiler is a supported compiler. @param classname fully qualified classname which implements CompilerAdapter
[ "Sets", "the", "default", "compiler", "adapter", ".", "Use", "the", "name", "attribute", "when", "the", "compiler", "is", "a", "supported", "compiler", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/CompilerDef.java#L361-L371
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/CompilerDef.java
CompilerDef.setName
public void setName(final CompilerEnum name) throws BuildException { if (isReference()) { throw tooManyAttributes(); } final Compiler compiler = name.getCompiler(); setProcessor(compiler); }
java
public void setName(final CompilerEnum name) throws BuildException { if (isReference()) { throw tooManyAttributes(); } final Compiler compiler = name.getCompiler(); setProcessor(compiler); }
[ "public", "void", "setName", "(", "final", "CompilerEnum", "name", ")", "throws", "BuildException", "{", "if", "(", "isReference", "(", ")", ")", "{", "throw", "tooManyAttributes", "(", ")", ";", "}", "final", "Compiler", "compiler", "=", "name", ".", "get...
Sets compiler type. <table width="100%" border="1"> <thead>Supported compilers </thead> <tr> <td>gcc (default)</td> <td>GCC C++ compiler</td> </tr> <tr> <td>g++</td> <td>GCC C++ compiler</td> </tr> <tr> <td>c++</td> <td>GCC C++ compiler</td> </tr> <tr> <td>g77</td> <td>GNU Fortran compiler</td> </tr> <tr> <td>msvc</t...
[ "Sets", "compiler", "type", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/CompilerDef.java#L510-L516
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/ProcessorDef.java
ProcessorDef.addFileset
public void addFileset(final ConditionalFileSet srcSet) throws BuildException { if (isReference()) { throw noChildrenAllowed(); } srcSet.setProject(getProject()); this.srcSets.addElement(srcSet); }
java
public void addFileset(final ConditionalFileSet srcSet) throws BuildException { if (isReference()) { throw noChildrenAllowed(); } srcSet.setProject(getProject()); this.srcSets.addElement(srcSet); }
[ "public", "void", "addFileset", "(", "final", "ConditionalFileSet", "srcSet", ")", "throws", "BuildException", "{", "if", "(", "isReference", "(", ")", ")", "{", "throw", "noChildrenAllowed", "(", ")", ";", "}", "srcSet", ".", "setProject", "(", "getProject", ...
Adds a source file set. Files in these set will be processed by this configuration and will not participate in the auction. @param srcSet Fileset identifying files that should be processed by this processor @throws BuildException if processor definition is a reference
[ "Adds", "a", "source", "file", "set", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/ProcessorDef.java#L183-L189
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/ProcessorDef.java
ProcessorDef.createConfiguration
public ProcessorConfiguration createConfiguration(final CCTask task, final LinkType linkType, final ProcessorDef baseDef, final TargetDef targetPlatform, final VersionInfo versionInfo) { if (isReference()) { return ((ProcessorDef) getCheckedRef(ProcessorDef.class, "ProcessorDef")).createConfiguration(ta...
java
public ProcessorConfiguration createConfiguration(final CCTask task, final LinkType linkType, final ProcessorDef baseDef, final TargetDef targetPlatform, final VersionInfo versionInfo) { if (isReference()) { return ((ProcessorDef) getCheckedRef(ProcessorDef.class, "ProcessorDef")).createConfiguration(ta...
[ "public", "ProcessorConfiguration", "createConfiguration", "(", "final", "CCTask", "task", ",", "final", "LinkType", "linkType", ",", "final", "ProcessorDef", "baseDef", ",", "final", "TargetDef", "targetPlatform", ",", "final", "VersionInfo", "versionInfo", ")", "{",...
Creates a configuration @param baseDef reference to def from containing cc element, may be null @return configuration
[ "Creates", "a", "configuration" ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/ProcessorDef.java#L199-L208
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/ProcessorDef.java
ProcessorDef.getDebug
public boolean getDebug(final ProcessorDef[] defaultProviders, final int index) { if (isReference()) { return ((ProcessorDef) getCheckedRef(ProcessorDef.class, "ProcessorDef")).getDebug(defaultProviders, index); } if (this.debug != null) { return this.debug.booleanValue(); } else { if ...
java
public boolean getDebug(final ProcessorDef[] defaultProviders, final int index) { if (isReference()) { return ((ProcessorDef) getCheckedRef(ProcessorDef.class, "ProcessorDef")).getDebug(defaultProviders, index); } if (this.debug != null) { return this.debug.booleanValue(); } else { if ...
[ "public", "boolean", "getDebug", "(", "final", "ProcessorDef", "[", "]", "defaultProviders", ",", "final", "int", "index", ")", "{", "if", "(", "isReference", "(", ")", ")", "{", "return", "(", "(", "ProcessorDef", ")", "getCheckedRef", "(", "ProcessorDef", ...
Gets boolean indicating debug build @param defaultProviders array of ProcessorDef's in descending priority @param index index to first element in array that should be considered @return if true, built targets for debugging
[ "Gets", "boolean", "indicating", "debug", "build" ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/ProcessorDef.java#L271-L283
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/ProcessorDef.java
ProcessorDef.getDefaultProviders
protected final ProcessorDef[] getDefaultProviders(final ProcessorDef baseDef) { ProcessorDef extendsDef = getExtends(); final Vector chain = new Vector(); while (extendsDef != null && !chain.contains(extendsDef)) { chain.addElement(extendsDef); extendsDef = extendsDef.getExtends(); } if...
java
protected final ProcessorDef[] getDefaultProviders(final ProcessorDef baseDef) { ProcessorDef extendsDef = getExtends(); final Vector chain = new Vector(); while (extendsDef != null && !chain.contains(extendsDef)) { chain.addElement(extendsDef); extendsDef = extendsDef.getExtends(); } if...
[ "protected", "final", "ProcessorDef", "[", "]", "getDefaultProviders", "(", "final", "ProcessorDef", "baseDef", ")", "{", "ProcessorDef", "extendsDef", "=", "getExtends", "(", ")", ";", "final", "Vector", "chain", "=", "new", "Vector", "(", ")", ";", "while", ...
Creates an chain of objects which provide default values in descending order of significance. @param baseDef corresponding ProcessorDef from CCTask, will be last element in array unless inherit = false @return default provider array
[ "Creates", "an", "chain", "of", "objects", "which", "provide", "default", "values", "in", "descending", "order", "of", "significance", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/ProcessorDef.java#L295-L308
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/ProcessorDef.java
ProcessorDef.getExtends
public ProcessorDef getExtends() throws BuildException { if (this.extendsRef != null) { final Object obj = this.extendsRef.getReferencedObject(getProject()); if (!getClass().isInstance(obj)) { throw new BuildException("Referenced object " + this.extendsRef.getRefId() + " not correct type, is " ...
java
public ProcessorDef getExtends() throws BuildException { if (this.extendsRef != null) { final Object obj = this.extendsRef.getReferencedObject(getProject()); if (!getClass().isInstance(obj)) { throw new BuildException("Referenced object " + this.extendsRef.getRefId() + " not correct type, is " ...
[ "public", "ProcessorDef", "getExtends", "(", ")", "throws", "BuildException", "{", "if", "(", "this", ".", "extendsRef", "!=", "null", ")", "{", "final", "Object", "obj", "=", "this", ".", "extendsRef", ".", "getReferencedObject", "(", "getProject", "(", ")"...
Gets the ProcessorDef specified by the extends attribute @return Base ProcessorDef, null if extends is not specified @throws BuildException if reference is not same type object
[ "Gets", "the", "ProcessorDef", "specified", "by", "the", "extends", "attribute" ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/ProcessorDef.java#L328-L338
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/ProcessorDef.java
ProcessorDef.getRebuild
public boolean getRebuild(final ProcessorDef[] defaultProviders, final int index) { if (isReference()) { return ((ProcessorDef) getCheckedRef(ProcessorDef.class, "ProcessorDef")).getRebuild(defaultProviders, index); } if (this.rebuild != null) { return this.rebuild.booleanValue(); } else { ...
java
public boolean getRebuild(final ProcessorDef[] defaultProviders, final int index) { if (isReference()) { return ((ProcessorDef) getCheckedRef(ProcessorDef.class, "ProcessorDef")).getRebuild(defaultProviders, index); } if (this.rebuild != null) { return this.rebuild.booleanValue(); } else { ...
[ "public", "boolean", "getRebuild", "(", "final", "ProcessorDef", "[", "]", "defaultProviders", ",", "final", "int", "index", ")", "{", "if", "(", "isReference", "(", ")", ")", "{", "return", "(", "(", "ProcessorDef", ")", "getCheckedRef", "(", "ProcessorDef"...
Gets a boolean value indicating whether all targets must be rebuilt regardless of dependency analysis. @param defaultProviders array of ProcessorDef's in descending priority @param index index to first element in array that should be considered @return true if all targets should be rebuilt.
[ "Gets", "a", "boolean", "value", "indicating", "whether", "all", "targets", "must", "be", "rebuilt", "regardless", "of", "dependency", "analysis", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/ProcessorDef.java#L407-L419
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/ProcessorDef.java
ProcessorDef.setClassname
public void setClassname(final String className) throws BuildException { Object proc = null; try { final Class implClass = ProcessorDef.class.getClassLoader().loadClass(className); try { final Method getInstance = implClass.getMethod("getInstance"); proc = getInstance.invoke(null); ...
java
public void setClassname(final String className) throws BuildException { Object proc = null; try { final Class implClass = ProcessorDef.class.getClassLoader().loadClass(className); try { final Method getInstance = implClass.getMethod("getInstance"); proc = getInstance.invoke(null); ...
[ "public", "void", "setClassname", "(", "final", "String", "className", ")", "throws", "BuildException", "{", "Object", "proc", "=", "null", ";", "try", "{", "final", "Class", "implClass", "=", "ProcessorDef", ".", "class", ".", "getClassLoader", "(", ")", "....
Sets the class name for the adapter. Use the "name" attribute when the tool is supported. @param className full class name
[ "Sets", "the", "class", "name", "for", "the", "adapter", ".", "Use", "the", "name", "attribute", "when", "the", "tool", "is", "supported", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/ProcessorDef.java#L476-L490
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/ProcessorDef.java
ProcessorDef.setProcessor
protected void setProcessor(final Processor processor) throws BuildException, NullPointerException { if (processor == null) { throw new NullPointerException("processor"); } if (isReference()) { throw super.tooManyAttributes(); } if (this.env == null && !this.newEnvironment) { this....
java
protected void setProcessor(final Processor processor) throws BuildException, NullPointerException { if (processor == null) { throw new NullPointerException("processor"); } if (isReference()) { throw super.tooManyAttributes(); } if (this.env == null && !this.newEnvironment) { this....
[ "protected", "void", "setProcessor", "(", "final", "Processor", "processor", ")", "throws", "BuildException", ",", "NullPointerException", "{", "if", "(", "processor", "==", "null", ")", "{", "throw", "new", "NullPointerException", "(", "\"processor\"", ")", ";", ...
Sets the processor @param processor processor, may not be null. @throws BuildException if ProcessorDef is a reference @throws NullPointerException if processor is null
[ "Sets", "the", "processor" ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/ProcessorDef.java#L614-L626
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/ProcessorDef.java
ProcessorDef.setRefid
@Override public void setRefid(final org.apache.tools.ant.types.Reference ref) { super.setRefid(ref); }
java
@Override public void setRefid(final org.apache.tools.ant.types.Reference ref) { super.setRefid(ref); }
[ "@", "Override", "public", "void", "setRefid", "(", "final", "org", ".", "apache", ".", "tools", ".", "ant", ".", "types", ".", "Reference", "ref", ")", "{", "super", ".", "setRefid", "(", "ref", ")", ";", "}" ]
Specifies that this element should behave as if the content of the element with the matching id attribute was inserted at this location. If specified, no other attributes or child content should be specified, other than "if", "unless" and "description". @param ref Reference to other element
[ "Specifies", "that", "this", "element", "should", "behave", "as", "if", "the", "content", "of", "the", "element", "with", "the", "matching", "id", "attribute", "was", "inserted", "at", "this", "location", ".", "If", "specified", "no", "other", "attributes", ...
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/ProcessorDef.java#L653-L656
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/ProcessorDef.java
ProcessorDef.visitFiles
public void visitFiles(final FileVisitor visitor) { final Project p = getProject(); if (p == null) { throw new java.lang.IllegalStateException("project must be set before this call"); } if (isReference()) { ((ProcessorDef) getCheckedRef(ProcessorDef.class, "ProcessorDef")).visitFiles(visitor...
java
public void visitFiles(final FileVisitor visitor) { final Project p = getProject(); if (p == null) { throw new java.lang.IllegalStateException("project must be set before this call"); } if (isReference()) { ((ProcessorDef) getCheckedRef(ProcessorDef.class, "ProcessorDef")).visitFiles(visitor...
[ "public", "void", "visitFiles", "(", "final", "FileVisitor", "visitor", ")", "{", "final", "Project", "p", "=", "getProject", "(", ")", ";", "if", "(", "p", "==", "null", ")", "{", "throw", "new", "java", ".", "lang", ".", "IllegalStateException", "(", ...
This method calls the FileVistor's visit function for every file in the processors definition @param visitor object whose visit method is called for every file
[ "This", "method", "calls", "the", "FileVistor", "s", "visit", "function", "for", "every", "file", "in", "the", "processors", "definition" ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/ProcessorDef.java#L681-L711
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/types/LibrarySet.java
LibrarySet.getDataset
public String getDataset() { if (isReference()) { final LibrarySet master = (LibrarySet) getCheckedRef(LibrarySet.class, "LibrarySet"); return master.getDataset(); } return this.dataset; }
java
public String getDataset() { if (isReference()) { final LibrarySet master = (LibrarySet) getCheckedRef(LibrarySet.class, "LibrarySet"); return master.getDataset(); } return this.dataset; }
[ "public", "String", "getDataset", "(", ")", "{", "if", "(", "isReference", "(", ")", ")", "{", "final", "LibrarySet", "master", "=", "(", "LibrarySet", ")", "getCheckedRef", "(", "LibrarySet", ".", "class", ",", "\"LibrarySet\"", ")", ";", "return", "maste...
Gets the dataset. Used on OS390 if the libs are in a dataset. @return Returns a String
[ "Gets", "the", "dataset", ".", "Used", "on", "OS390", "if", "the", "libs", "are", "in", "a", "dataset", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/types/LibrarySet.java#L73-L79
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/types/LibrarySet.java
LibrarySet.getType
public LibraryTypeEnum getType() { if (isReference()) { final LibrarySet master = (LibrarySet) getCheckedRef(LibrarySet.class, "LibrarySet"); return master.getType(); } return this.libraryType; }
java
public LibraryTypeEnum getType() { if (isReference()) { final LibrarySet master = (LibrarySet) getCheckedRef(LibrarySet.class, "LibrarySet"); return master.getType(); } return this.libraryType; }
[ "public", "LibraryTypeEnum", "getType", "(", ")", "{", "if", "(", "isReference", "(", ")", ")", "{", "final", "LibrarySet", "master", "=", "(", "LibrarySet", ")", "getCheckedRef", "(", "LibrarySet", ".", "class", ",", "\"LibrarySet\"", ")", ";", "return", ...
Gets preferred library type @return library type, may be null.
[ "Gets", "preferred", "library", "type" ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/types/LibrarySet.java#L111-L117
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/types/LibrarySet.java
LibrarySet.setLibs
public void setLibs(final CUtil.StringArrayBuilder libs) throws BuildException { if (isReference()) { throw tooManyAttributes(); } this.libnames = libs.getValue(); // // earlier implementations would warn of suspicious library names // (like libpthread for pthread or kernel.lib for kernel)...
java
public void setLibs(final CUtil.StringArrayBuilder libs) throws BuildException { if (isReference()) { throw tooManyAttributes(); } this.libnames = libs.getValue(); // // earlier implementations would warn of suspicious library names // (like libpthread for pthread or kernel.lib for kernel)...
[ "public", "void", "setLibs", "(", "final", "CUtil", ".", "StringArrayBuilder", "libs", ")", "throws", "BuildException", "{", "if", "(", "isReference", "(", ")", ")", "{", "throw", "tooManyAttributes", "(", ")", ";", "}", "this", ".", "libnames", "=", "libs...
Comma-separated list of library names without leading prefixes, such as "lib", or extensions, such as ".so" or ".a".
[ "Comma", "-", "separated", "list", "of", "library", "names", "without", "leading", "prefixes", "such", "as", "lib", "or", "extensions", "such", "as", ".", "so", "or", ".", "a", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/types/LibrarySet.java#L223-L233
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/TargetDef.java
TargetDef.getArch
public ArchEnum getArch() { if (isReference()) { final TargetDef refPlatform = (TargetDef) getCheckedRef(TargetDef.class, "TargetDef"); return refPlatform.getArch(); } return this.arch; }
java
public ArchEnum getArch() { if (isReference()) { final TargetDef refPlatform = (TargetDef) getCheckedRef(TargetDef.class, "TargetDef"); return refPlatform.getArch(); } return this.arch; }
[ "public", "ArchEnum", "getArch", "(", ")", "{", "if", "(", "isReference", "(", ")", ")", "{", "final", "TargetDef", "refPlatform", "=", "(", "TargetDef", ")", "getCheckedRef", "(", "TargetDef", ".", "class", ",", "\"TargetDef\"", ")", ";", "return", "refPl...
Gets arch. @return arch, may be null.
[ "Gets", "arch", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/TargetDef.java#L79-L85
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/TargetDef.java
TargetDef.getCpu
public CPUEnum getCpu() { if (isReference()) { final TargetDef refPlatform = (TargetDef) getCheckedRef(TargetDef.class, "TargetDef"); return refPlatform.getCpu(); } return this.cpu; }
java
public CPUEnum getCpu() { if (isReference()) { final TargetDef refPlatform = (TargetDef) getCheckedRef(TargetDef.class, "TargetDef"); return refPlatform.getCpu(); } return this.cpu; }
[ "public", "CPUEnum", "getCpu", "(", ")", "{", "if", "(", "isReference", "(", ")", ")", "{", "final", "TargetDef", "refPlatform", "=", "(", "TargetDef", ")", "getCheckedRef", "(", "TargetDef", ".", "class", ",", "\"TargetDef\"", ")", ";", "return", "refPlat...
Gets cpu. @return cpu, may be null.
[ "Gets", "cpu", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/TargetDef.java#L93-L99
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/TargetDef.java
TargetDef.getOsfamily
public OSFamilyEnum getOsfamily() { if (isReference()) { final TargetDef refPlatform = (TargetDef) getCheckedRef(TargetDef.class, "TargetDef"); return refPlatform.getOsfamily(); } return this.osFamily; }
java
public OSFamilyEnum getOsfamily() { if (isReference()) { final TargetDef refPlatform = (TargetDef) getCheckedRef(TargetDef.class, "TargetDef"); return refPlatform.getOsfamily(); } return this.osFamily; }
[ "public", "OSFamilyEnum", "getOsfamily", "(", ")", "{", "if", "(", "isReference", "(", ")", ")", "{", "final", "TargetDef", "refPlatform", "=", "(", "TargetDef", ")", "getCheckedRef", "(", "TargetDef", ".", "class", ",", "\"TargetDef\"", ")", ";", "return", ...
Gets operating system family. @return os family, may be null.
[ "Gets", "operating", "system", "family", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/TargetDef.java#L107-L113
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/TargetDef.java
TargetDef.setArch
public void setArch(final ArchEnum value) { if (isReference()) { throw tooManyAttributes(); } if (this.cpu != null) { throw tooManyAttributes(); } this.arch = value; }
java
public void setArch(final ArchEnum value) { if (isReference()) { throw tooManyAttributes(); } if (this.cpu != null) { throw tooManyAttributes(); } this.arch = value; }
[ "public", "void", "setArch", "(", "final", "ArchEnum", "value", ")", "{", "if", "(", "isReference", "(", ")", ")", "{", "throw", "tooManyAttributes", "(", ")", ";", "}", "if", "(", "this", ".", "cpu", "!=", "null", ")", "{", "throw", "tooManyAttributes...
Sets cpu architecture, compiler may use cpu specific instructions. @param value new value
[ "Sets", "cpu", "architecture", "compiler", "may", "use", "cpu", "specific", "instructions", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/TargetDef.java#L131-L139
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/TargetDef.java
TargetDef.setOsfamily
public void setOsfamily(final OSFamilyEnum value) { if (isReference()) { throw tooManyAttributes(); } if (this.cpu != null) { throw tooManyAttributes(); } this.osFamily = value; }
java
public void setOsfamily(final OSFamilyEnum value) { if (isReference()) { throw tooManyAttributes(); } if (this.cpu != null) { throw tooManyAttributes(); } this.osFamily = value; }
[ "public", "void", "setOsfamily", "(", "final", "OSFamilyEnum", "value", ")", "{", "if", "(", "isReference", "(", ")", ")", "{", "throw", "tooManyAttributes", "(", ")", ";", "}", "if", "(", "this", ".", "cpu", "!=", "null", ")", "{", "throw", "tooManyAt...
Sets operating system family. @param value new value
[ "Sets", "operating", "system", "family", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/TargetDef.java#L200-L208
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/types/DefineSet.java
DefineSet.getDefines
public UndefineArgument[] getDefines() throws BuildException { if (isReference()) { final DefineSet defset = (DefineSet) getCheckedRef(DefineSet.class, "DefineSet"); return defset.getDefines(); } else { if (isActive()) { final UndefineArgument[] defs = new UndefineArgument[this.defineL...
java
public UndefineArgument[] getDefines() throws BuildException { if (isReference()) { final DefineSet defset = (DefineSet) getCheckedRef(DefineSet.class, "DefineSet"); return defset.getDefines(); } else { if (isActive()) { final UndefineArgument[] defs = new UndefineArgument[this.defineL...
[ "public", "UndefineArgument", "[", "]", "getDefines", "(", ")", "throws", "BuildException", "{", "if", "(", "isReference", "(", ")", ")", "{", "final", "DefineSet", "defset", "=", "(", "DefineSet", ")", "getCheckedRef", "(", "DefineSet", ".", "class", ",", ...
Returns the defines and undefines in this set.
[ "Returns", "the", "defines", "and", "undefines", "in", "this", "set", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/types/DefineSet.java#L91-L104
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/types/DefineSet.java
DefineSet.setDefine
public void setDefine(final CUtil.StringArrayBuilder defList) throws BuildException { if (isReference()) { throw tooManyAttributes(); } addDefines(defList.getValue(), true); }
java
public void setDefine(final CUtil.StringArrayBuilder defList) throws BuildException { if (isReference()) { throw tooManyAttributes(); } addDefines(defList.getValue(), true); }
[ "public", "void", "setDefine", "(", "final", "CUtil", ".", "StringArrayBuilder", "defList", ")", "throws", "BuildException", "{", "if", "(", "isReference", "(", ")", ")", "{", "throw", "tooManyAttributes", "(", ")", ";", "}", "addDefines", "(", "defList", "....
A comma-separated list of preprocessor macros to define. Use nested define elements to define macro values. @param defList comma-separated list of preprocessor macros @throws BuildException throw if defineset is a reference
[ "A", "comma", "-", "separated", "list", "of", "preprocessor", "macros", "to", "define", ".", "Use", "nested", "define", "elements", "to", "define", "macro", "values", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/types/DefineSet.java#L126-L131
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/types/DefineSet.java
DefineSet.setRefid
@Override public void setRefid(final Reference r) throws BuildException { if (!this.defineList.isEmpty()) { throw tooManyAttributes(); } super.setRefid(r); }
java
@Override public void setRefid(final Reference r) throws BuildException { if (!this.defineList.isEmpty()) { throw tooManyAttributes(); } super.setRefid(r); }
[ "@", "Override", "public", "void", "setRefid", "(", "final", "Reference", "r", ")", "throws", "BuildException", "{", "if", "(", "!", "this", ".", "defineList", ".", "isEmpty", "(", ")", ")", "{", "throw", "tooManyAttributes", "(", ")", ";", "}", "super",...
Specifies that this element should behave as if the content of the element with the matching id attribute was inserted at this location. If specified, no other attributes or child content should be specified, other than "description".
[ "Specifies", "that", "this", "element", "should", "behave", "as", "if", "the", "content", "of", "the", "element", "with", "the", "matching", "id", "attribute", "was", "inserted", "at", "this", "location", ".", "If", "specified", "no", "other", "attributes", ...
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/types/DefineSet.java#L177-L183
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/types/DefineSet.java
DefineSet.setUndefine
public void setUndefine(final CUtil.StringArrayBuilder undefList) throws BuildException { if (isReference()) { throw tooManyAttributes(); } addDefines(undefList.getValue(), false); }
java
public void setUndefine(final CUtil.StringArrayBuilder undefList) throws BuildException { if (isReference()) { throw tooManyAttributes(); } addDefines(undefList.getValue(), false); }
[ "public", "void", "setUndefine", "(", "final", "CUtil", ".", "StringArrayBuilder", "undefList", ")", "throws", "BuildException", "{", "if", "(", "isReference", "(", ")", ")", "{", "throw", "tooManyAttributes", "(", ")", ";", "}", "addDefines", "(", "undefList"...
A comma-separated list of preprocessor macros to undefine. @param undefList comma-separated list of preprocessor macros @throws BuildException throw if defineset is a reference
[ "A", "comma", "-", "separated", "list", "of", "preprocessor", "macros", "to", "undefine", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/types/DefineSet.java#L193-L198
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/NarInfo.java
NarInfo.getAttachedNars
public final String[] getAttachedNars(final AOL aol, final String type) { final String attachedNars = getProperty(aol, NarConstants.NAR + "." + type); return attachedNars != null ? attachedNars.split(",") : null; }
java
public final String[] getAttachedNars(final AOL aol, final String type) { final String attachedNars = getProperty(aol, NarConstants.NAR + "." + type); return attachedNars != null ? attachedNars.split(",") : null; }
[ "public", "final", "String", "[", "]", "getAttachedNars", "(", "final", "AOL", "aol", ",", "final", "String", "type", ")", "{", "final", "String", "attachedNars", "=", "getProperty", "(", "aol", ",", "NarConstants", ".", "NAR", "+", "\".\"", "+", "type", ...
FIXME replace with list of AttachedNarArtifacts
[ "FIXME", "replace", "with", "list", "of", "AttachedNarArtifacts" ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/NarInfo.java#L90-L93
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/DependencyTable.java
DependencyTable.getDependencyInfo
public DependencyInfo getDependencyInfo(final String sourceRelativeName, final String includePathIdentifier) { DependencyInfo dependInfo = null; final DependencyInfo[] dependInfos = (DependencyInfo[]) this.dependencies.get(sourceRelativeName); if (dependInfos != null) { for (final DependencyInfo depen...
java
public DependencyInfo getDependencyInfo(final String sourceRelativeName, final String includePathIdentifier) { DependencyInfo dependInfo = null; final DependencyInfo[] dependInfos = (DependencyInfo[]) this.dependencies.get(sourceRelativeName); if (dependInfos != null) { for (final DependencyInfo depen...
[ "public", "DependencyInfo", "getDependencyInfo", "(", "final", "String", "sourceRelativeName", ",", "final", "String", "includePathIdentifier", ")", "{", "DependencyInfo", "dependInfo", "=", "null", ";", "final", "DependencyInfo", "[", "]", "dependInfos", "=", "(", ...
This method returns a DependencyInfo for the specific source file and include path identifier
[ "This", "method", "returns", "a", "DependencyInfo", "for", "the", "specific", "source", "file", "and", "include", "path", "identifier" ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/DependencyTable.java#L350-L362
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/DependencyTable.java
DependencyTable.needsRebuild
public boolean needsRebuild(final CCTask task, final TargetInfo target, final int dependencyDepth) { // look at any files where the compositeLastModified // is not known, but the includes are known // boolean mustRebuild = false; final CompilerConfiguration compiler = (CompilerConfiguration) target....
java
public boolean needsRebuild(final CCTask task, final TargetInfo target, final int dependencyDepth) { // look at any files where the compositeLastModified // is not known, but the includes are known // boolean mustRebuild = false; final CompilerConfiguration compiler = (CompilerConfiguration) target....
[ "public", "boolean", "needsRebuild", "(", "final", "CCTask", "task", ",", "final", "TargetInfo", "target", ",", "final", "int", "dependencyDepth", ")", "{", "// look at any files where the compositeLastModified", "// is not known, but the includes are known", "//", "boolean",...
Determines if the specified target needs to be rebuilt. This task may result in substantial IO as files are parsed to determine their dependencies
[ "Determines", "if", "the", "specified", "target", "needs", "to", "be", "rebuilt", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/DependencyTable.java#L405-L440
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/NarAssemblyMojo.java
NarAssemblyMojo.narExecute
@Override public final void narExecute() throws MojoExecutionException, MojoFailureException { // download the dependencies if needed in local maven repository. List<AttachedNarArtifact> attachedNarArtifacts = getAttachedNarArtifacts(libraries); downloadAttachedNars(attachedNarArtifacts); // Warning,...
java
@Override public final void narExecute() throws MojoExecutionException, MojoFailureException { // download the dependencies if needed in local maven repository. List<AttachedNarArtifact> attachedNarArtifacts = getAttachedNarArtifacts(libraries); downloadAttachedNars(attachedNarArtifacts); // Warning,...
[ "@", "Override", "public", "final", "void", "narExecute", "(", ")", "throws", "MojoExecutionException", ",", "MojoFailureException", "{", "// download the dependencies if needed in local maven repository.", "List", "<", "AttachedNarArtifact", ">", "attachedNarArtifacts", "=", ...
Copies the unpacked nar libraries and files into the projects target area
[ "Copies", "the", "unpacked", "nar", "libraries", "and", "files", "into", "the", "projects", "target", "area" ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/NarAssemblyMojo.java#L56-L104
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/LinkerDef.java
LinkerDef.getActiveLibrarySets
public LibrarySet[] getActiveLibrarySets(final LinkerDef[] defaultProviders, final int index) { if (isReference()) { return ((LinkerDef) getCheckedRef(LinkerDef.class, "LinkerDef")) .getActiveUserLibrarySets(defaultProviders, index); } final Project p = getProject(); final Vector libsets...
java
public LibrarySet[] getActiveLibrarySets(final LinkerDef[] defaultProviders, final int index) { if (isReference()) { return ((LinkerDef) getCheckedRef(LinkerDef.class, "LinkerDef")) .getActiveUserLibrarySets(defaultProviders, index); } final Project p = getProject(); final Vector libsets...
[ "public", "LibrarySet", "[", "]", "getActiveLibrarySets", "(", "final", "LinkerDef", "[", "]", "defaultProviders", ",", "final", "int", "index", ")", "{", "if", "(", "isReference", "(", ")", ")", "{", "return", "(", "(", "LinkerDef", ")", "getCheckedRef", ...
Returns an array of active library sets for this linker definition.
[ "Returns", "an", "array", "of", "active", "library", "sets", "for", "this", "linker", "definition", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/LinkerDef.java#L167-L185
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/LinkerDef.java
LinkerDef.setName
public void setName(final LinkerEnum name) throws BuildException { if (isReference()) { throw tooManyAttributes(); } final Linker linker = name.getLinker(); super.setProcessor(linker); }
java
public void setName(final LinkerEnum name) throws BuildException { if (isReference()) { throw tooManyAttributes(); } final Linker linker = name.getLinker(); super.setProcessor(linker); }
[ "public", "void", "setName", "(", "final", "LinkerEnum", "name", ")", "throws", "BuildException", "{", "if", "(", "isReference", "(", ")", ")", "{", "throw", "tooManyAttributes", "(", ")", ";", "}", "final", "Linker", "linker", "=", "name", ".", "getLinker...
Sets linker type. <table width="100%" border="1"> <thead>Supported linkers </thead> <tr> <td>gcc</td> <td>Gcc Linker</td> </tr> <tr> <td>g++</td> <td>G++ Linker</td> </tr> <tr> <td>ld</td> <td>Ld Linker</td> </tr> <tr> <td>ar</td> <td>Gcc Librarian</td> </tr> <tr> <td>msvc</td> <td>Microsoft Linker</td> </tr> <tr> <t...
[ "Sets", "linker", "type", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/LinkerDef.java#L476-L482
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/trolltech/MetaObjectCompiler.java
MetaObjectCompiler.getOutputFileNames
@Override public String[] getOutputFileNames(final String inputFile, final VersionInfo versionInfo) { if (inputFile.endsWith(".cpp")) { return super.getOutputFileNames(inputFile, versionInfo); } // // if a recognized input file // final String baseName = getBaseOutputName(inputFile); ...
java
@Override public String[] getOutputFileNames(final String inputFile, final VersionInfo versionInfo) { if (inputFile.endsWith(".cpp")) { return super.getOutputFileNames(inputFile, versionInfo); } // // if a recognized input file // final String baseName = getBaseOutputName(inputFile); ...
[ "@", "Override", "public", "String", "[", "]", "getOutputFileNames", "(", "final", "String", "inputFile", ",", "final", "VersionInfo", "versionInfo", ")", "{", "if", "(", "inputFile", ".", "endsWith", "(", "\".cpp\"", ")", ")", "{", "return", "super", ".", ...
Gets output file names. @param inputFile String input file name @param versionInfo version info, not used by this compiler. @return String[] output file names
[ "Gets", "output", "file", "names", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/trolltech/MetaObjectCompiler.java#L288-L300
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/apple/XcodeProjectWriter.java
XcodeProjectWriter.createPBXBuildFile
private static PBXObjectRef createPBXBuildFile(final PBXObjectRef fileRef, final Map settings) { final Map map = new HashMap(); map.put("fileRef", fileRef); map.put("isa", "PBXBuildFile"); if (settings != null) { map.put("settings", settings); } return new PBXObjectRef(map); }
java
private static PBXObjectRef createPBXBuildFile(final PBXObjectRef fileRef, final Map settings) { final Map map = new HashMap(); map.put("fileRef", fileRef); map.put("isa", "PBXBuildFile"); if (settings != null) { map.put("settings", settings); } return new PBXObjectRef(map); }
[ "private", "static", "PBXObjectRef", "createPBXBuildFile", "(", "final", "PBXObjectRef", "fileRef", ",", "final", "Map", "settings", ")", "{", "final", "Map", "map", "=", "new", "HashMap", "(", ")", ";", "map", ".", "put", "(", "\"fileRef\"", ",", "fileRef",...
Create PBXBuildFile. @param fileRef source file. @param settings build settings. @return PBXBuildFile.
[ "Create", "PBXBuildFile", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/apple/XcodeProjectWriter.java#L135-L143
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/apple/XcodeProjectWriter.java
XcodeProjectWriter.createPBXCopyFilesBuildPhase
private static PBXObjectRef createPBXCopyFilesBuildPhase(final int buildActionMask, final String dstPath, final String dstSubfolderSpec, final List files, final boolean runOnly) { final Map map = new HashMap(); map.put("isa", "PBXCopyFilesBuildPhase"); map.put("buildActionMask", NumberFormat.getIntege...
java
private static PBXObjectRef createPBXCopyFilesBuildPhase(final int buildActionMask, final String dstPath, final String dstSubfolderSpec, final List files, final boolean runOnly) { final Map map = new HashMap(); map.put("isa", "PBXCopyFilesBuildPhase"); map.put("buildActionMask", NumberFormat.getIntege...
[ "private", "static", "PBXObjectRef", "createPBXCopyFilesBuildPhase", "(", "final", "int", "buildActionMask", ",", "final", "String", "dstPath", ",", "final", "String", "dstSubfolderSpec", ",", "final", "List", "files", ",", "final", "boolean", "runOnly", ")", "{", ...
Create a build phase that copies files to a destination. @param buildActionMask build action mask. @param dstPath destination path. @param dstSubfolderSpec subfolder spec. @param files files. @param runOnly if true, phase should only be run on deployment. @return PBXCopyFileBuildPhase.
[ "Create", "a", "build", "phase", "that", "copies", "files", "to", "a", "destination", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/apple/XcodeProjectWriter.java#L179-L189
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/apple/XcodeProjectWriter.java
XcodeProjectWriter.createPBXFileReference
private static PBXObjectRef createPBXFileReference(final String sourceTree, final String baseDir, final File file) { final Map map = new HashMap(); map.put("isa", "PBXFileReference"); final String relPath = CUtil.toUnixPath(CUtil.getRelativePath(baseDir, file)); map.put("path", relPath); map.put("n...
java
private static PBXObjectRef createPBXFileReference(final String sourceTree, final String baseDir, final File file) { final Map map = new HashMap(); map.put("isa", "PBXFileReference"); final String relPath = CUtil.toUnixPath(CUtil.getRelativePath(baseDir, file)); map.put("path", relPath); map.put("n...
[ "private", "static", "PBXObjectRef", "createPBXFileReference", "(", "final", "String", "sourceTree", ",", "final", "String", "baseDir", ",", "final", "File", "file", ")", "{", "final", "Map", "map", "=", "new", "HashMap", "(", ")", ";", "map", ".", "put", ...
Create PBXFileReference. @param sourceTree source tree. @param baseDir base directory. @param file file. @return PBXFileReference object.
[ "Create", "PBXFileReference", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/apple/XcodeProjectWriter.java#L202-L211
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/apple/XcodeProjectWriter.java
XcodeProjectWriter.createPBXFrameworksBuildPhase
private static PBXObjectRef createPBXFrameworksBuildPhase(final int buildActionMask, final List files, final boolean runOnly) { final Map map = new HashMap(); map.put("isa", "PBXFrameworksBuildPhase"); map.put("buildActionMask", NumberFormat.getIntegerInstance(Locale.US).format(buildActionMask)); ...
java
private static PBXObjectRef createPBXFrameworksBuildPhase(final int buildActionMask, final List files, final boolean runOnly) { final Map map = new HashMap(); map.put("isa", "PBXFrameworksBuildPhase"); map.put("buildActionMask", NumberFormat.getIntegerInstance(Locale.US).format(buildActionMask)); ...
[ "private", "static", "PBXObjectRef", "createPBXFrameworksBuildPhase", "(", "final", "int", "buildActionMask", ",", "final", "List", "files", ",", "final", "boolean", "runOnly", ")", "{", "final", "Map", "map", "=", "new", "HashMap", "(", ")", ";", "map", ".", ...
Create PBXFrameworksBuildPhase. @param buildActionMask build action mask. @param files files. @param runOnly if true, phase should only be run on deployment. @return PBXFrameworkBuildPhase.
[ "Create", "PBXFrameworksBuildPhase", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/apple/XcodeProjectWriter.java#L224-L232
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/apple/XcodeProjectWriter.java
XcodeProjectWriter.createPBXGroup
private static PBXObjectRef createPBXGroup(final String name, final String sourceTree, final List children) { final Map map = new HashMap(); map.put("isa", "PBXGroup"); map.put("name", name); map.put("sourceTree", sourceTree); map.put("children", children); return new PBXObjectRef(map); }
java
private static PBXObjectRef createPBXGroup(final String name, final String sourceTree, final List children) { final Map map = new HashMap(); map.put("isa", "PBXGroup"); map.put("name", name); map.put("sourceTree", sourceTree); map.put("children", children); return new PBXObjectRef(map); }
[ "private", "static", "PBXObjectRef", "createPBXGroup", "(", "final", "String", "name", ",", "final", "String", "sourceTree", ",", "final", "List", "children", ")", "{", "final", "Map", "map", "=", "new", "HashMap", "(", ")", ";", "map", ".", "put", "(", ...
Create PBXGroup. @param name group name. @param sourceTree source tree. @param children list of PBXFileReferences. @return group.
[ "Create", "PBXGroup", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/apple/XcodeProjectWriter.java#L245-L252
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/apple/XcodeProjectWriter.java
XcodeProjectWriter.createPBXNativeTarget
private static PBXObjectRef createPBXNativeTarget(final String name, final PBXObjectRef buildConfigurationList, final List buildPhases, final List buildRules, final List dependencies, final String productInstallPath, final String productName, final PBXObjectRef productReference, final String productType) { ...
java
private static PBXObjectRef createPBXNativeTarget(final String name, final PBXObjectRef buildConfigurationList, final List buildPhases, final List buildRules, final List dependencies, final String productInstallPath, final String productName, final PBXObjectRef productReference, final String productType) { ...
[ "private", "static", "PBXObjectRef", "createPBXNativeTarget", "(", "final", "String", "name", ",", "final", "PBXObjectRef", "buildConfigurationList", ",", "final", "List", "buildPhases", ",", "final", "List", "buildRules", ",", "final", "List", "dependencies", ",", ...
Create PBXNativeTarget. @param name name. @param buildConfigurationList build configuration list. @param buildPhases build phases. @param buildRules build rules. @param dependencies dependencies. @param productInstallPath product install path. @param productName product name. @param productReference file reference for...
[ "Create", "PBXNativeTarget", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/apple/XcodeProjectWriter.java#L277-L292
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/apple/XcodeProjectWriter.java
XcodeProjectWriter.createPBXProject
private static PBXObjectRef createPBXProject(final PBXObjectRef buildConfigurationList, final PBXObjectRef mainGroup, final String projectDirPath, final String projectRoot, final List targets) { final Map map = new HashMap(); map.put("isa", "PBXProject"); map.put("buildConfigurationList", buildConfigu...
java
private static PBXObjectRef createPBXProject(final PBXObjectRef buildConfigurationList, final PBXObjectRef mainGroup, final String projectDirPath, final String projectRoot, final List targets) { final Map map = new HashMap(); map.put("isa", "PBXProject"); map.put("buildConfigurationList", buildConfigu...
[ "private", "static", "PBXObjectRef", "createPBXProject", "(", "final", "PBXObjectRef", "buildConfigurationList", ",", "final", "PBXObjectRef", "mainGroup", ",", "final", "String", "projectDirPath", ",", "final", "String", "projectRoot", ",", "final", "List", "targets", ...
Create PBXProject. @param buildConfigurationList build configuration list. @param mainGroup main group. @param projectDirPath project directory path. @param targets targets. @param projectRoot projectRoot directory relative to @return project.
[ "Create", "PBXProject", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/apple/XcodeProjectWriter.java#L309-L320
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/apple/XcodeProjectWriter.java
XcodeProjectWriter.createPBXSourcesBuildPhase
private static PBXObjectRef createPBXSourcesBuildPhase(final int buildActionMask, final List files, final boolean runOnly) { final Map map = new HashMap(); map.put("buildActionMask", String.valueOf(buildActionMask)); map.put("files", files); map.put("isa", "PBXSourcesBuildPhase"); map.put("run...
java
private static PBXObjectRef createPBXSourcesBuildPhase(final int buildActionMask, final List files, final boolean runOnly) { final Map map = new HashMap(); map.put("buildActionMask", String.valueOf(buildActionMask)); map.put("files", files); map.put("isa", "PBXSourcesBuildPhase"); map.put("run...
[ "private", "static", "PBXObjectRef", "createPBXSourcesBuildPhase", "(", "final", "int", "buildActionMask", ",", "final", "List", "files", ",", "final", "boolean", "runOnly", ")", "{", "final", "Map", "map", "=", "new", "HashMap", "(", ")", ";", "map", ".", "...
Create PBXSourcesBuildPhase. @param buildActionMask build action mask. @param files source files. @param runOnly if true, phase should only be run on deployment. @return PBXSourcesBuildPhase.
[ "Create", "PBXSourcesBuildPhase", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/apple/XcodeProjectWriter.java#L353-L361
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/apple/XcodeProjectWriter.java
XcodeProjectWriter.createXCBuildConfiguration
private static PBXObjectRef createXCBuildConfiguration(final String name, final Map<String, ?> buildSettings) { final Map map = new HashMap(); map.put("isa", "XCBuildConfiguration"); map.put("buildSettings", buildSettings); map.put("name", name); return new PBXObjectRef(map); }
java
private static PBXObjectRef createXCBuildConfiguration(final String name, final Map<String, ?> buildSettings) { final Map map = new HashMap(); map.put("isa", "XCBuildConfiguration"); map.put("buildSettings", buildSettings); map.put("name", name); return new PBXObjectRef(map); }
[ "private", "static", "PBXObjectRef", "createXCBuildConfiguration", "(", "final", "String", "name", ",", "final", "Map", "<", "String", ",", "?", ">", "buildSettings", ")", "{", "final", "Map", "map", "=", "new", "HashMap", "(", ")", ";", "map", ".", "put",...
Create XCBuildConfiguration. @param name name. @param buildSettings build settings. @return build configuration.
[ "Create", "XCBuildConfiguration", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/apple/XcodeProjectWriter.java#L372-L378
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/apple/XcodeProjectWriter.java
XcodeProjectWriter.createXCConfigurationList
private static PBXObjectRef createXCConfigurationList(final List buildConfigurations) { final Map map = new HashMap(); map.put("isa", "XCConfigurationList"); map.put("buildConfigurations", buildConfigurations); return new PBXObjectRef(map); }
java
private static PBXObjectRef createXCConfigurationList(final List buildConfigurations) { final Map map = new HashMap(); map.put("isa", "XCConfigurationList"); map.put("buildConfigurations", buildConfigurations); return new PBXObjectRef(map); }
[ "private", "static", "PBXObjectRef", "createXCConfigurationList", "(", "final", "List", "buildConfigurations", ")", "{", "final", "Map", "map", "=", "new", "HashMap", "(", ")", ";", "map", ".", "put", "(", "\"isa\"", ",", "\"XCConfigurationList\"", ")", ";", "...
Create XCConfigurationList. @param buildConfigurations build configurations. @return configuration list.
[ "Create", "XCConfigurationList", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/apple/XcodeProjectWriter.java#L387-L392
train
maven-nar/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/apple/XcodeProjectWriter.java
XcodeProjectWriter.addDependency
private PBXObjectRef addDependency(final Map objects, final PBXObjectRef project, final List mainGroupChildren, final String baseDir, final DependencyDef dependency) { if (dependency.getFile() != null) { final File xcodeDir = new File(dependency.getFile().getAbsolutePath() + ".xcodeproj"); if (xco...
java
private PBXObjectRef addDependency(final Map objects, final PBXObjectRef project, final List mainGroupChildren, final String baseDir, final DependencyDef dependency) { if (dependency.getFile() != null) { final File xcodeDir = new File(dependency.getFile().getAbsolutePath() + ".xcodeproj"); if (xco...
[ "private", "PBXObjectRef", "addDependency", "(", "final", "Map", "objects", ",", "final", "PBXObjectRef", "project", ",", "final", "List", "mainGroupChildren", ",", "final", "String", "baseDir", ",", "final", "DependencyDef", "dependency", ")", "{", "if", "(", "...
Adds a dependency to the object graph. @param objects @param project @param mainGroupChildren @param baseDir @param dependency @return PBXBuildFile to add to PBXFrameworksBuildPhase.
[ "Adds", "a", "dependency", "to", "the", "object", "graph", "." ]
3c622e2024296b4203431bbae3bde290a01dac00
https://github.com/maven-nar/nar-maven-plugin/blob/3c622e2024296b4203431bbae3bde290a01dac00/src/main/java/com/github/maven_nar/cpptasks/apple/XcodeProjectWriter.java#L425-L463
train