I have verified today. Except the folder names, none of the file time stamps get modified.
test project:
{{{
23-08-2013 11:22 <DIR> .
23-08-2013 11:22 <DIR> ..
22-08-2013 18:07 11,752 .cproject
22-08-2013 18:01 782 .project
23-08-2013 11:22 <DIR> .settings
23-08-2013 11:22 <DIR> Debug
23-08-2013 11:22 <DIR> src
2 File(s) 12,534 bytes
5 Dir(s) 7,381,094,400 bytes free
}}}
Debug:
{{{
23-08-2013 11:22 <DIR> .
23-08-2013 11:22 <DIR> ..
22-08-2013 18:07 1,031 makefile
22-08-2013 18:07 239 objects.mk
22-08-2013 18:07 407 sources.mk
23-08-2013 11:22 <DIR> src
22-08-2013 18:07 19,501 test.exe
4 File(s) 21,178 bytes
3 Dir(s) 7,381,073,920 bytes free
}}}
src:
{{{
23-08-2013 11:22 <DIR> .
23-08-2013 11:22 <DIR> ..
22-08-2013 18:07 685 subdir.mk
22-08-2013 18:07 38 test.d
22-08-2013 18:07 3,974 test.o
3 File(s) 4,697 bytes
2 Dir(s) 7,381,073,920 bytes free
}}}
From: HariBabu M
Sent: 22 August 2013 18:31
To: cdt-dev@xxxxxxxxxxx
Subject: Why project gets build after importing the project into new workspace
I have created a basic 'Hello World ANSI C' executable project and the settings are as follws:
1) Toolchain: 'MingW GCC'
2) Builder changed to 'GNU Make builder'
3) Set the make (GNU Make v3.82) file path
4) Build the project.
5) exported as a archive i.e. 'mingw.zip' file.
6) Delete the project from workspace
7) open a NEW workspace
8) Import the project 'mingw.zip'
9) Build the project
Project builds completely. Is it expected?
As per my understanding, if the source files timestamp is greater than the binaries, then only the project should trigger the build.
I am unsure, why the build triggers now.
Can anyone hint me on why the project is getting build.
I am confirming that the time stamp of source file and out put files are identical within archive and within workspace (before build).
Verified on:
{{{
Eclipse IDE for C/C++ Developers
Version: Juno Release
Build id: 20120614-1722
}}}
Build Output:
{{{
18:18:44 **** Clean-only build of configuration Debug for project test ****
make clean
rm -rf ./src/test.o ./src/test.d test.exe
' '
18:18:45 Build Finished (took 484ms)
18:18:45 **** Build of configuration Debug for project test ****
make all
'Building file: ../src/test.c'
'Invoking: GCC C Compiler'
gcc -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/test.d" -MT"src/test.d" -o "src/test.o" "../src/test.c"
'Finished building: ../src/test.c'
' '
'Building target: test.exe'
'Invoking: MinGW C Linker'
gcc -o "test.exe" ./src/test.o
'Finished building target: test.exe'
' '
18:18:46 Build Finished (took 688ms)
}}}
This message contains information that may be privileged or confidential and is the property of the KPIT Cummins Infosystems Ltd. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read,
print, retain copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. KPIT Cummins Infosystems Ltd. does not accept any liability
for virus infected mails.