Skip to content

Commit 7f07bfc

Browse files
committed
move compo generation in src folder
1 parent b95db7f commit 7f07bfc

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public class CompoButton {
185185
}
186186
}
187187
```
188-
The generated file is created in `{project-folder}/target/classes/static/vueJS/button-counter.js`
188+
The generated file is created in `{project-folder}/src/main/resources/static/vueJS/button-counter.js`
189189

190190
```javascript
191191
//Script generated with VueComponent at Thu Oct 11 03:01:09 CEST 2018

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>io.github.jeemv.springboot.vuejs</groupId>
88
<artifactId>springboot-vuejs</artifactId>
9-
<version>1.0.9</version>
9+
<version>1.0.10</version>
1010

1111
<name>springboot-vuejs</name>
1212
<url>https://github.com/jeeMv/SpringBoot-VueJS</url>

src/main/java/io/github/jeemv/springboot/vuejs/components/VueComponent.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* VueJS component class
2727
* This class is part of springBoot-VueJS
2828
* @author jc
29-
* @version 1.0.0
29+
* @version 1.0.1
3030
*
3131
*/
3232
public class VueComponent extends AbstractVueJS{
@@ -161,8 +161,8 @@ protected void loadTemplateFile(String filename) throws IOException {
161161
* @throws IOException for file creation
162162
*/
163163
public void createFile(String pathFilename,boolean minify) throws IOException {
164-
Resource resource = new ClassPathResource("static/");
165-
File f=new File(resource.getFile().getAbsolutePath().toString()+"\\"+pathFilename);
164+
File resource = new File("src/main/resources/static/");
165+
File f=new File(resource.getAbsolutePath().toString()+"\\"+pathFilename);
166166
f.getParentFile().mkdirs();
167167
if(f.exists()) {
168168
Scanner sc=new Scanner(System.in);

0 commit comments

Comments
 (0)