Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
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/
  • Loading branch information
hansonr authored and hansonr committed Mar 24, 2019
commit 5c7ef17e147253f930d00e1628fda08b51b489f2
13 changes: 12 additions & 1 deletion sources/net.sf.j2s.core/dist/build-site.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,12 @@
<!-- location of third-party jar contents as precompiled zipped .js files to copy to site/ -->
<property name="libjs.dir" value="libjs" />

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

<!-- non-Java resources to copy to site/ -->
<property name="site-resource.dir" value="site-resources" />

<!-- output directories -->

<property name="site.dir" value="site" />
Expand Down Expand Up @@ -75,6 +78,14 @@
</fileset>
</copy>

<echo> Copying ${site-resource.dir} files into ${site.dir} </echo>
<copy todir="${site.dir}">
<fileset dir="${site-resource.dir}">
<include name="**"/>
</fileset>
</copy>


</target>


Expand Down
2 changes: 1 addition & 1 deletion sources/net.sf.j2s.core/dist/resources/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ SwingJS distribution -- resources directory

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

6 changes: 6 additions & 0 deletions sources/net.sf.j2s.core/dist/site-resources/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
SwingJS distribution -- site-resources directory

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