You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2005/03/16 11:39:26 UTC

DO NOT REPLY [Bug 34032] New: - Buggy compile target in struts-blank's build.xml

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34032>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34032

           Summary: Buggy compile target in struts-blank's build.xml
           Product: Struts
           Version: 1.2.4
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P4
         Component: Example
        AssignedTo: dev@struts.apache.org
        ReportedBy: a-thor@yandex.ru


I was wondering for months why running "ant compile" on the build.xml file that
comes with struts-blank web application _always_ results in total recompilation
of the whole project regardless of file modification times etc.
At last I get bored with this (on a slow machine and a moderate project this
tirfle can become a real pain-in-the-ass) and decided to look more closely at
this stuff.
I found following task declaration in WEB-INF/src/build.xml of struts-blank.war
(that's both for struts 1.1 and 1.2.4):

    <target name="compile" depends="prepare,resources">
        <javac srcdir="src" destdir="classes">
            <classpath refid="compile.classpath"/>
        </javac>
    </target>

That would result in following ant debug output:

    [javac] java\app\AppInitServlet.java added as java/app/AppInitServlet.class
doesn't exist.
    [javac] java\app\ConfigureAction.java added as
java/app/ConfigureAction.class doesn't exist.

However, if we write in the javac task  srcdir="src/java", all goes pretty well.
As far as I understand things, source hierarchy should reside under "src/java"
directory, not "src".

 Didn't looked for other wars bundled with struts installationg though, it may
be worth of an effort to check them as well.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org