David.Ostrovsk                                                     
                                                        
                    [EMAIL PROTECTED]             To:     [EMAIL PROTECTED]                
                                                        
                                         cc:                                           
                                                        
                    01/31/02 05:26       Subject:     Re: -Dbuffer=abc.java has no 
effect                                                      
                    AM                                                                 
                                                        
                                                                                       
                                                        
                                                                                       
                                                        







Jason,
I'm looking for an opportunity to cut from the buffer path the package
part:

The full buffer name
is:/ccvobs/projekte/h2/src/java/test/de/dvg/fdl/zv/activity/dauerauftrag/DauerauftragErfassenActivityTest.java


So if I call jde-ant-build, the follow command will bepased to ant:

ant -Dbuffer=ant
-Dbuffer=/ccvobs/projekte/h2/src/java/test/de/dvg/fdl/zv/activity/dauerauftrag/DauerauftragErfassenActivityTest.java


 -buildfile /ccvobs/projekte/h2/src/java/build.xml -emacs compileZVBuffer
-buildfile /ccvobs/projekte/h2/src/java/build.xml -emacs compileZVBuffer

The only problem is that the path should be start from
test/de/dvg/fdl/zv/activity/dauerauftrag/DauerauftragErfassenActivityTest.java


the allway is fine.
I didn't find any othe opportunity with ant.

My target is:

  <target name="compileZVBuffer"
          description="Compile a single file specified by the buffer
property">
   <property name="local.classpath" value="${cp.tas}:${cp.wls}:
${cp.uiacc}"/>
   <property name="build.compiler" value="${javac.compiler}"/>
   <property name="local.verbose" value="on"/>
   <property name="local.package" value="test/de/dvg/fdl/zv/**"/>

   <echo message="Compiler: ${javac.compiler}"/>
   <echo message="Package: ${local.package}"/>
   <echo message="Classpath:"/>
   <echo message="${do.classes}:${local.classpath}:${project.classpath}:
${all.classpath}"/>
   <echo message="Buffer: ${buffer}"/>
   <echo message="Verbose: ${local.verbose}"/>
   <echo message="Deprecation: ${javac.deprecation}"/>
   <echo message="Debug: ${javac.debug}"/>
   <echo message="Source: ${dir.src}/java"/>
   <echo message="Include: ${local.package}/${buffer}"/>

   <javac srcdir="${dir.src}/java"
          classpath="${do.classes}:${local.classpath}:${project.classpath}:
${all.classpath}"
          verbose="${local.verbose}"
          deprecation="${javac.deprecation}"
          debug="${javac.debug}"
          destdir="${do.classes}">
          <include name="${buffer}"/>
   </javac>
  </target>


Is there any way to customize the -Dbuffer content, or should I do it
myself
(I mean to copy the jdee-Package in my .xemacs/xemacs-packages directory
and manipulationg it. Can you give my please a small hint, how could I
extract this
part from the full path with elisp?)

Thank you

Regards

David Ostrovsky

e-Mail   [EMAIL PROTECTED]
Tel:       0511-5102-3430
Fax:      0511-5102-143430




                    jason.stell@e

                    quant.com            An:     <[EMAIL PROTECTED]>

                                         Kopie:  [EMAIL PROTECTED]

                    30.01.02             Thema:  Re: Antwort: Re:
-Dbuffer=abc.java has no effect
                    14:41







David

Something like the following should work (though I've not tested it):

<target name="compileBuffer" description="Compile a single file specified
by the buffer property">
    <javac srcdir="${src}"
       destdir="${dest}"
                  includes="${buffer}" />
</target>


Of course, you can always review the Ant Manual
(http://jakarta.apache.org/ant/manual/) for descriptions/examples/options.


HTH
Jason





                    <David.Ostrovs

                    [EMAIL PROTECTED]>           To:     [EMAIL PROTECTED]

                                         cc:

                    01/30/02 08:22       Subject:     Antwort: Re:
-Dbuffer=abc.java has no effect

                    AM








Jason,

many thanks for you help.

Could you give me a hint, how to configure an ANT task that the only file
through "buffer"-Property
would compile.

Thank you in advance

Regards,

David Ostrovsky

e-Mail   [EMAIL PROTECTED]
Tel:       0511-5102-3430
Fax:      0511-5102-143430





                    jason.stell@e

                    quant.com            An:     [EMAIL PROTECTED]

                                         Kopie:  [EMAIL PROTECTED],
[EMAIL PROTECTED]
                    30.01.02             Thema:  Re: -Dbuffer=abc.java has
no effect
                    14:00







David

The -Dbuffer=abc.java switch will pass the buffer value to your build.xml
file. In order to compile only the current file, you must modify your
'buildZV' task (or create a new build task) to compile only the file
specified by the 'buffer' property.

Regards
Jason Stell





                    David.Ostrovsk

                    [EMAIL PROTECTED]             To:     [EMAIL PROTECTED]

                                         cc:     [EMAIL PROTECTED]

                    01/30/02 04:53       Subject:     -Dbuffer=abc.java has
no effect
                    AM







Hello,

I'm new to jdee on xemacs.

I am trying to build with jde-ant-build:

The command, that ist execute is:

cd /ccvobs/projekte/h2/src/java/prj.el
ant
-Dbuffer=/ccvobs/projekte/h2/src/java/de/dvg/fdl/zv/guihtml/dauerauftrag/DauerauftragErfassenViewController.java






 -buildfile /ccvobs/projekte/h2/src/java/build.xml -emacs buildZV

but all 200 files are compiled.

Is there no possibiliy to compile only the curent file? What is then the
property buffer for?

Thank in advance.


Regards,

David Ostrovsky

e-Mail   [EMAIL PROTECTED]
Tel:       0511-5102-3430
Fax:      0511-5102-143430




















Reply via email to