You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Kristian Waagan (JIRA)" <ji...@apache.org> on 2008/02/01 12:03:09 UTC

[jira] Commented: (DERBY-3372) Adjust demos build.xml to avoid re-compiling SimpleApp and SimpleMobileApp

    [ https://issues.apache.org/jira/browse/DERBY-3372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12564723#action_12564723 ] 

Kristian Waagan commented on DERBY-3372:
----------------------------------------

I applied the patch and observed that things still got built. I also noticed that when running the demo target more than once, the classes were not recompiled.

+1 to commit

> Adjust demos build.xml to avoid re-compiling SimpleApp and SimpleMobileApp
> --------------------------------------------------------------------------
>
>                 Key: DERBY-3372
>                 URL: https://issues.apache.org/jira/browse/DERBY-3372
>             Project: Derby
>          Issue Type: Improvement
>          Components: Build tools, Demos/Scripts
>    Affects Versions: 10.4.0.0
>            Reporter: Bryan Pendleton
>            Assignee: Bryan Pendleton
>            Priority: Trivial
>         Attachments: buildScript.diff
>
>
> I propose to adjust the java/demo/build.xml file to change the "srcdir" and "includes"
> values on the javac task that compiles SimpleApp.java and SimpleMobileApp.java.
> Since these two Java programs are not inside of a package, Ant is happiest if
> we specify their srcdir directories directly, see:
> http://ant.apache.org/faq.html#always-recompiles 
> The change to java/demo/build.xml will be
> Index: java/demo/build.xml
> ===================================================================
> --- java/demo/build.xml (revision 616784)
> +++ java/demo/build.xml (working copy)
> @@ -86,9 +86,8 @@
>        optimize="${optimize}"
>        proceed="${proceed}"
>        verbose="${verbose}"
> -      srcdir="${derby.demo.src.dir}"
> -      destdir="${out.dir}"
> -      includes="simple/**,simplemobile/**">
> +      srcdir="${derby.demo.src.dir}/simple:${derby.demo.src.dir}/simplemobile"
> +      destdir="${out.dir}">
>        <classpath>
>          <pathelement location="${javasrc.dir};${jcc}"/>
>          <pathelement path="${java14compile.classpath};${jcc}"/>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.