Skip to content

Commit

Permalink
refactored the directory structure so you can use the kool-template-s…
Browse files Browse the repository at this point in the history
…ample without requiring java7 or javafx
  • Loading branch information
jstrachan committed Jul 6, 2012
1 parent 2ff80da commit bbf6bdf
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 15 deletions.
2 changes: 1 addition & 1 deletion javafx/kool-javafx/pom.xml → kool-javafx/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<parent>
<groupId>io.kool</groupId>
<artifactId>javafx</artifactId>
<artifactId>kool-project</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>

Expand Down
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
<module>kool-html-modelgen</module>
<module>kool-js-library</module>
<module>kool-ui</module>
<module>samples</module>
<module>apidoc</module>
<module>website</module>
</modules>
Expand Down Expand Up @@ -135,7 +136,7 @@
<jdk>7</jdk>
</activation>
<modules>
<module>javafx</module>
<module>kool-javafx</module>
</modules>
</profile>
</profiles>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,13 @@

<parent>
<groupId>io.kool</groupId>
<artifactId>javafx</artifactId>
<artifactId>samples</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>

<artifactId>kool-javafx-sample</artifactId>
<artifactId>kool-template-sample</artifactId>

<dependencies>
<dependency>
<groupId>io.kool</groupId>
<artifactId>kool-javafx</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>io.kool</groupId>
<artifactId>kool-template</artifactId>
Expand All @@ -29,6 +24,7 @@
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit-version}</version>
<scope>test</scope>
</dependency>
</dependencies>

Expand Down Expand Up @@ -71,12 +67,20 @@
</build>

<profiles>
<!-- runs the JavaFX UI -->
<!-- runs the JavaFX UI - requires Java 7 -->
<profile>
<id>ui</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<dependencies>
<dependency>
<groupId>io.kool</groupId>
<artifactId>kool-javafx</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<script type="text/javascript" src="src/main/js/jquery.js"></script>
<script type="text/javascript" src="target/js/kotlin-lib-ecma3.js"></script>
<script type="text/javascript" src="target/js/kotlin-lib.js"></script>
<script type="text/javascript" src="target/js/kool-javafx-sample.js"></script>
<script type="text/javascript" src="target/js/kool-template-sample.js"></script>
</head>
<body>
<h1>Sample</h1>
Expand All @@ -19,7 +19,7 @@ <h1>Sample</h1>
<p>Should have generated stuff above...</p>

<script type="text/javascript">
$(document).ready(Kotlin.modules['kool-javafx-sample'].test.kool.myapp.myApp)
$(document).ready(Kotlin.modules['kool-template-sample'].test.kool.myapp.myApp)
</script>

</body>
Expand Down
5 changes: 2 additions & 3 deletions javafx/pom.xml → samples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@
<version>1.0-SNAPSHOT</version>
</parent>

<artifactId>javafx</artifactId>
<artifactId>samples</artifactId>
<packaging>pom</packaging>

<modules>
<module>kool-javafx</module>
<module>kool-javafx-sample</module>
<module>kool-template-sample</module>
</modules>

</project>

0 comments on commit bbf6bdf

Please sign in to comment.