Skip to content

Commit a0e2abd

Browse files
committed
Rename op.yaml -> ops.yaml
1 parent 6f99a25 commit a0e2abd

7 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎docs/ops/doc/WritingYourOwnOpPackage.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The recommended way to declare your Ops is through Javadoc. This approach requir
88

99
### Adding the SciJava Ops Indexer to your POM
1010

11-
Ops written through Javadoc are discovered by the SciJava Ops Indexer, which creates a file `op.yaml` containing all of the data needed to import each Op you declare.
11+
Ops written through Javadoc are discovered by the SciJava Ops Indexer, which creates a file `ops.yaml` containing all of the data needed to import each Op you declare.
1212

1313
Until the SciJava Ops annotation processor is integrated into [pom-scijava](https://github.com/scijava/pom-scijava), developers must add the following block of code to the `build` section of their project POM:
1414

‎pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@
234234
end
235235

236236
# Read in main and test scope plugin annotations.
237-
['op.yaml', 'META-INF/json/org.scijava.plugin.Plugin'].each do |pluginsPath|
237+
['ops.yaml', 'META-INF/json/org.scijava.plugin.Plugin'].each do |pluginsPath|
238238
mainPluginsPath = "#{basedir}/target/classes/#{pluginsPath}"
239239
testPluginsPath = "#{basedir}/target/test-classes/#{pluginsPath}"
240240
mainPlugins = read_plugins(mainPluginsPath)

‎scijava-ops-engine/src/main/java/org/scijava/ops/engine/yaml/impl/YAMLOpInfoDiscoverer.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public <U> List<U> discover(Class<U> c) {
9191
*/
9292
private List<URL> getOpYAML() {
9393
try {
94-
Enumeration<URL> e = Classes.classLoader().getResources("op.yaml");
94+
Enumeration<URL> e = Classes.classLoader().getResources("ops.yaml");
9595
return Collections.list(e);
9696
}
9797
catch (IOException e) {

‎scijava-ops-ext-parser/src/main/java/org/scijava/ops/parser/OpParser.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ private static List<String> getListHelper(String key,
234234
* @param methodName The method within the base class that will be the Op's
235235
* source
236236
* @param parameterTypes The array of parameters for the given method
237-
* @return A source string that can be written as part of an op.yaml
237+
* @return A source string that can be written as part of an ops.yaml
238238
*/
239239
private static String parseOpSource(String className, String methodName,
240240
Class<?>[] parameterTypes)
@@ -320,10 +320,10 @@ private static int compareParamCount(Method m1, Method m2) {
320320
}
321321

322322
/**
323-
* Helper method to write an {@link OpData} list to an {@code op.yaml} file.
323+
* Helper method to write an {@link OpData} list to an {@code ops.yaml} file.
324324
*/
325325
private static void outputYamlDoc(String opYaml) throws IOException {
326-
File f = new File("op.yaml");
326+
File f = new File("ops.yaml");
327327
try (OutputStream os = new FileOutputStream(f)) {
328328
os.write(opYaml.getBytes(UTF_8));
329329
}

‎scijava-ops-indexer/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public static Double add(final Double d1, final Double d2) {
6565
}
6666
```
6767

68-
This annotation processor might create the following file `op.yaml` within the JAR build by Maven:
68+
This annotation processor might create the following file `ops.yaml` within the JAR build by Maven:
6969

7070
```yaml
7171
- op:

‎scijava-ops-indexer/src/main/java/org/scijava/ops/indexer/OpImplNoteParser.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ private void outputYamlDoc(List<OpImplData> collectedData)
153153
FileObject resource = processingEnv.getFiler().createResource( //
154154
StandardLocation.CLASS_OUTPUT, //
155155
"", //
156-
"op.yaml" //
156+
"ops.yaml" //
157157
);
158158
try (OutputStream os = resource.openOutputStream()) {
159159
os.write(doc.getBytes(UTF_8));
File renamed without changes.

0 commit comments

Comments
 (0)