Skip to content

Commit

Permalink
Add resources directory (#29)
Browse files Browse the repository at this point in the history
* delete: resources file

* move resources to src

* fix: edit path base project

* fix: copy var file
  • Loading branch information
mosoriob authored Feb 17, 2020
1 parent 011131c commit ec2d8aa
Show file tree
Hide file tree
Showing 38 changed files with 14 additions and 19 deletions.
1 change: 1 addition & 0 deletions oba.iml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="inheritedJdk" />
Expand Down
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@
</dependencies>

<build>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>

<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
<plugins>
<!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/edu/isi/oba/Oba.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

class Oba {
public static void main(String[] args) throws Exception {
final String base_project_dir = "./tools/base_project/";
final String base_project_dir = "./";

//parse command line
String config_yaml = get_config_yaml(args);
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/edu/isi/oba/SerializerPython.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@

class SerializerPython {
public SerializerPython(List<Mapper> mappers, java.nio.file.Path dir, OpenAPI openAPI) throws IOException {
//Create directory utils
final String utils_dir = ".openapi-generator/template/static_files/utils/";
File utils_dir_path = new File(dir + File.separator + utils_dir);
utils_dir_path.mkdir();

//Create variable file
final String var_file_python = ".openapi-generator/template/static_files/utils/vars.py";
FileWriter var_file_writer = new FileWriter(dir + File.separator + var_file_python);
Iterator i = mappers.iterator();
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
17 changes: 0 additions & 17 deletions tmp/docs/index.md

This file was deleted.

1 change: 0 additions & 1 deletion tmp/mkdocs.yml

This file was deleted.

0 comments on commit ec2d8aa

Please sign in to comment.