Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added target "copyall" in build.xml for the "dev" environment
Fixes issue with not copying non-optimized .css and .js files into the publish folder. If dev environment is selected, .css and .js aren't minified, thus they aren't copied over with existing "copy" target.
  • Loading branch information
tralston committed Dec 9, 2011
1 parent b1e3aa5 commit cafea9f
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions build/build.xml
Expand Up @@ -240,7 +240,7 @@
<!-- Target: basics -->
<target name="-basics.dev"
depends="-intro,
-copy"/>
-copyall"/>

<target name="-basics.test"
depends="-intro,
Expand All @@ -267,7 +267,7 @@
<!-- Target: text -->
<target name="-text.dev"
depends="-intro,
-copy"/>
-copyall"/>

<target name="-text.test"
depends="-intro,
Expand Down Expand Up @@ -298,7 +298,7 @@
depends="-intro,
-imagespng,
-imagesjpg,
-copy"/>
-copyall"/>

<target name="-buildkit.test"
depends="-intro,
Expand Down Expand Up @@ -333,7 +333,7 @@
depends="-intro,
-imagespng,
-imagesjpg,
-copy"/>
-copyall"/>

<target name="-build.test"
depends="-intro,
Expand Down Expand Up @@ -368,7 +368,7 @@
depends="-intro,
-imagespng,
-imagesjpg,
-copy"/>
-copyall"/>

<target name="-minify.test"
depends="-intro,
Expand Down Expand Up @@ -476,6 +476,20 @@
</fileset>
</copy>

<echo message="A copy of all new non-dev files are now in: ./${dir.publish}."/>
</target>

<target name="-copyall" depends="-mkdirs">
<!-- This is a private target -->
<!-- Copies all files, including .css and .js files for when you aren't minifying-->
<echo message="Copying over all files..."/>

<copy todir="./${dir.publish}">
<fileset dir="${dir.source}/" excludes="${file.default.exclude}, ${file.exclude}">
<exclude name="${file.manifest}"/>
</fileset>
</copy>

<echo message="A copy of all non-dev files are now in: ./${dir.publish}."/>
</target>

Expand Down Expand Up @@ -1064,4 +1078,4 @@
<!-- See: https://github.com/h5bp/html5-boilerplate/issues/704 -->
<import file="./project.xml" />

</project>
</project>

0 comments on commit cafea9f

Please sign in to comment.