Show
Ignore:
Timestamp:
01/27/10 21:24:33 (14 years ago)
Author:
František Kučera <franta-hg@…>
Branch:
default
Message:

Vlastní (stručné) chybové hlášky (404 a 500), IP adresa pro reverzní proxy (provizorně).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • java/sql-vyuka/nbproject/build-impl.xml

    r46 r74  
    127127            <and> 
    128128                <isset property="has.custom.manifest"/> 
    129                 <isfalse value="${directory.deployment.supported}"/> 
     129                <or> 
     130                    <isfalse value="${directory.deployment.supported}"/> 
     131                    <isset property="dist.ear.dir"/> 
     132                </or> 
    130133            </and> 
    131134        </condition> 
     
    135138                    <isset property="has.custom.manifest"/> 
    136139                </not> 
     140                <or> 
     141                    <isfalse value="${directory.deployment.supported}"/> 
     142                    <isset property="dist.ear.dir"/> 
     143                </or> 
     144            </and> 
     145        </condition> 
     146        <condition property="do.tmp.war.package"> 
     147            <or> 
    137148                <isfalse value="${directory.deployment.supported}"/> 
    138             </and> 
    139         </condition> 
    140         <condition property="do.tmp.war.package"> 
    141             <isfalse value="${directory.deployment.supported}"/> 
     149                <isset property="dist.ear.dir"/> 
     150            </or> 
    142151        </condition> 
    143152        <property name="build.meta.inf.dir" value="${build.web.dir}/META-INF"/> 
     
    162171        <property name="includes" value="**"/> 
    163172        <property name="excludes" value=""/> 
    164         <condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'"> 
    165             <and> 
    166                 <isset property="jaxws.endorsed.dir"/> 
    167                 <available file="nbproject/jaxws-build.xml"/> 
    168             </and> 
    169         </condition> 
    170173        <property name="runmain.jvmargs" value=""/> 
     174        <path id="endorsed.classpath.path" path="${endorsed.classpath}"/> 
     175        <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'"> 
     176            <length length="0" string="${endorsed.classpath}" when="greater"/> 
     177        </condition> 
    171178    </target> 
    172179    <target depends="init" name="-init-cos" unless="deploy.on.save"> 
     
    231238                        <path path="@{classpath}"/> 
    232239                    </classpath> 
    233                     <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/> 
     240                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/> 
     241                    <compilerarg line="${javac.compilerargs}"/> 
    234242                    <customize/> 
    235243                </javac> 
     
    243251            <attribute default="**" name="testincludes"/> 
    244252            <sequential> 
    245                 <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true"> 
     253                <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}"> 
    246254                    <batchtest todir="${build.test.results.dir}"> 
    247255                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}"> 
     
    250258                    </batchtest> 
    251259                    <classpath> 
    252                         <path path="${run.test.classpath}:${j2ee.platform.classpath}"/> 
     260                        <path path="${run.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}"/> 
    253261                    </classpath> 
    254262                    <syspropertyset> 
     
    258266                    <formatter type="brief" usefile="false"/> 
    259267                    <formatter type="xml"/> 
     268                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> 
    260269                    <jvmarg line="${runmain.jvmargs}"/> 
    261270                </junit> 
     
    270279            <sequential> 
    271280                <java classname="@{classname}" fork="true"> 
     281                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> 
    272282                    <jvmarg line="${runmain.jvmargs}"/> 
    273283                    <classpath> 
     
    347357            <sequential> 
    348358                <java classname="@{classname}" fork="true"> 
     359                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> 
    349360                    <jvmarg line="${debug-args-line}"/> 
    350361                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/> 
     
    525536    <target depends="init,compile,compile-jsps,-pre-dist,-do-dist-with-manifest,-do-dist-without-manifest" name="do-dist"/> 
    526537    <target depends="init" if="dist.ear.dir" name="library-inclusion-in-manifest"> 
    527         <copyfiles files="${reference.SuperDAO.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.reference.SuperDAO.jar" todir="${dist.ear.dir}"/> 
     538        <copyfiles files="${reference.SuperDAO.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/> 
    528539        <mkdir dir="${build.web.dir}/META-INF"/> 
    529         <manifest file="${build.web.dir}/META-INF/MANIFEST.MF" mode="update"> 
    530             <attribute name="Class-Path" value="${manifest.reference.SuperDAO.jar} "/> 
    531         </manifest> 
     540        <manifest file="${build.web.dir}/META-INF/MANIFEST.MF" mode="update"/> 
    532541    </target> 
    533542    <target depends="init" name="library-inclusion-in-archive" unless="dist.ear.dir"> 
    534543        <copyfiles files="${reference.SuperDAO.jar}" todir="${build.web.dir}/WEB-INF/lib"/> 
    535544    </target> 
    536     <target depends="init,compile,compile-jsps,-pre-dist,library-inclusion-in-manifest" if="do.tmp.war.package" name="do-ear-dist"> 
     545    <target depends="init" if="dist.ear.dir" name="-clean-webinf-lib"> 
     546        <delete dir="${build.web.dir}/WEB-INF/lib"/> 
     547    </target> 
     548    <target depends="init,-clean-webinf-lib,compile,compile-jsps,-pre-dist,library-inclusion-in-manifest" if="do.tmp.war.package" name="do-ear-dist"> 
    537549        <dirname file="${dist.ear.war}" property="dist.jar.dir"/> 
    538550        <mkdir dir="${dist.jar.dir}"/> 
     
    546558    </target> 
    547559    <target depends="init,compile,-pre-dist,do-dist,-post-dist" description="Build distribution (WAR)." name="dist"/> 
    548     <target depends="init,-init-cos,compile,-pre-dist,do-ear-dist,-post-dist" description="Build distribution (WAR) to be packaged into an EAR." name="dist-ear"/> 
     560    <target depends="init,-clean-webinf-lib,-init-cos,compile,-pre-dist,do-ear-dist,-post-dist" description="Build distribution (WAR) to be packaged into an EAR." name="dist-ear"/> 
    549561    <!-- 
    550562                EXECUTION SECTION 
     
    661673                DEBUGGING SECTION 
    662674            --> 
    663     <target depends="init,compile,compile-jsps,-do-compile-single-jsp,-pre-dist,-do-tmp-dist-with-manifest,-do-tmp-dist-without-manifest" description="Debug project in IDE." if="netbeans.home" name="debug"> 
     675    <target depends="init,-init-cos,compile,compile-jsps,-do-compile-single-jsp,-pre-dist,-do-tmp-dist-with-manifest,-do-tmp-dist-without-manifest" description="Debug project in IDE." if="netbeans.home" name="debug"> 
    664676        <nbstartserver debugmode="true"/> 
    665677        <antcall target="connect-debugger"/> 
     
    736748    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test"> 
    737749        <mkdir dir="${build.test.classes.dir}"/> 
     750        <property name="j2ee.platform.embeddableejb.classpath" value=""/> 
    738751    </target> 
    739752    <target name="-pre-compile-test"> 
     
    742755    </target> 
    743756    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test"> 
    744         <webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/> 
     757        <webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/> 
    745758        <copy todir="${build.test.classes.dir}"> 
    746759            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> 
     
    758771    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single"> 
    759772        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail> 
    760         <webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" srcdir="${test.src.dir}"/> 
     773        <webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" srcdir="${test.src.dir}"/> 
    761774        <copy todir="${build.test.classes.dir}"> 
    762775            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> 
     
    805818        <!-- must exist, otherwise the XML formatter would fail --> 
    806819        <mkdir dir="${build.test.results.dir}"/> 
    807         <webproject1:debug args="${test.class}" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}"> 
     820        <webproject1:debug args="${test.class}" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}:${j2ee.platform.embeddableejb.classpath}"> 
    808821            <customize> 
    809822                <arg value="showoutput=true"/>