Skip to content

Commit 5c7ef17

Browse files
hansonrhansonr
authored andcommitted
adding site-resources
note - this doesn't change the action of build-site.xml in relation to the resources directory, only cleans up the incorrection description of what that does and also adds a directory that does what that used to say. That is, resources --> site/swingjs/j2s site-resources --> site/
1 parent c2133ab commit 5c7ef17

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

sources/net.sf.j2s.core/dist/build-site.xml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,12 @@
2828
<!-- location of third-party jar contents as precompiled zipped .js files to copy to site/ -->
2929
<property name="libjs.dir" value="libjs" />
3030

31-
<!-- non-Java resources to copy to site/ -->
31+
<!-- non-Java resources to copy to site/swingjs/j2s -->
3232
<property name="resource.dir" value="resources" />
3333

34+
<!-- non-Java resources to copy to site/ -->
35+
<property name="site-resource.dir" value="site-resources" />
36+
3437
<!-- output directories -->
3538

3639
<property name="site.dir" value="site" />
@@ -75,6 +78,14 @@
7578
</fileset>
7679
</copy>
7780

81+
<echo> Copying ${site-resource.dir} files into ${site.dir} </echo>
82+
<copy todir="${site.dir}">
83+
<fileset dir="${site-resource.dir}">
84+
<include name="**"/>
85+
</fileset>
86+
</copy>
87+
88+
7889
</target>
7990

8091

sources/net.sf.j2s.core/dist/resources/README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ SwingJS distribution -- resources directory
22

33
This directory can be used to hold non-Java files that your program
44
needs to run -- data files, for instance. Files in it will be copied to
5-
the site/ directory by build-site.xml.
5+
the site/swingjs/j2s directory by build-site.xml.
66

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
SwingJS distribution -- site-resources directory
2+
3+
This directory can be used to hold non-Java files that your program
4+
needs to run -- data files, for instance. Files in it will be copied to
5+
the site/ directory by build-site.xml.
6+

0 commit comments

Comments
 (0)