This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 251954 - Preparing platform application to run shouldn't copy any files when no changes
Summary: Preparing platform application to run shouldn't copy any files when no changes
Status: NEW
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.0.1
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Assignee: Martin Kozeny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-20 16:06 UTC by cezariusz
Modified: 2015-04-20 21:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cezariusz 2015-04-20 16:06:11 UTC
Product Version: NetBeans IDE Dev (Build 201504150001)
Updates: Updates available
Java: 1.8.0_25; Java HotSpot(TM) 64-Bit Server VM 25.25-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_25-b18
System: Windows 7 version 6.1 running on amd64; UTF-8; pl_PL (nb)

When I run a platform application using NetBeans IDE and there were no changes since the last run, I expect it to run as quickly as possible, without any file copying. But what I see in the output is the reason it always takes a while to run:

platform.download:
ant -f R:\\Work\\Navi\\Navi run
...
com.comarch.navi.lib.release:
Copying 4 files to R:\Work\Navi\Navi\build\cluster
com.thoughtworks.xstream.release:
Copying 1 file to R:\Work\Navi\Navi\build\cluster
org.apache.commons.release:
Copying 4 files to R:\Work\Navi\Navi\build\cluster
org.apache.http.release:
Copying 4 files to R:\Work\Navi\Navi\build\cluster
org.codehaus.jackson.release:
Copying 3 files to R:\Work\Navi\Navi\build\cluster
org.videolan.vlc.release:
Copying 177 files to R:\Work\Navi\Navi\build\cluster

Looks like all files release\modules are being copied to the cluster on each build. There must be something broken in the build script, as ANT wouldn't copy unchanged files on its own.
Comment 1 cezariusz 2015-04-20 17:07:09 UTC
I think this is the culprit:

    <target name="release" depends="files-init" if="has.release.dir">
        <mkdir dir="${cluster}"/>
        <copy todir="${cluster}" overwrite="true">
            <fileset dir="${release.dir}">
                <patternset includes="${release.files}"/>
            </fileset>
        </copy>        
    </target>

What is the reason to put overwrite="true" here?