Install4j "Copy files and directories" installer action does not copy the file directory path - install4j

I do a backup of the files that need to be replaced as part of the installation. For this I use the above action. However, it just copies the files in the child directory to the destination directory but not the directory hierarchy of the source to the destination directory. Example: I have a some files in this directory structure \dir1\dir2\dir3\files. It copies only the files under dir3 but not the \dir1\dir2\dir3. I need to preserve the directory structure in the backup. Can anyone help with this please?
I am using Windows 7 Enterprise.
Thanks very much.

You have to select the root directory in the action, i.e. the one containing "dir1". Then, it will copy the whole directory tree to the destination.
If you want to copy only parts of the directory tree, use the "Directory filter" and "File filter" properties.

Related

When I push a cpp file to the github repository then an exe file gets added. What can I do so that I don't get those exe files

Whenever I push a cpp file to my github repository an exe file gets added to the repository. I don't want that exe file.How to do that?
you want the file not be tracked across everyone's repositories create a pattern as below in .gitignore file. This file can either be in root directory of you application or a the directory you .cpp and .exe files are in.
*.exe
If you want .exe files to be ignored for only you. Then you can put above pattern in .git/info/exclude
Follow this link for more info:
https://www.atlassian.com/git/tutorials/saving-changes/gitignore

Is there a way in "Copy Files Tasks" in TFS to Copy the files and also it's Folders and subfolders with it's files

For this example below, I want to use the "Copy Files Tasks" to copy the "Project1" and it's subfolder namely "bin", "ConfigFiles", etc. that contains it's files. But can also copy the folder in "Project1" as a directory and it's files within, to the Target Destination. I don't want to use the "Windows Machine File Copy" tasks...
Thank you in advance.
As Daniel Mann mentioned, you can find the glob patterns in the task link here.
In addition, since you'd like to copy the "Project1" as well, you need to remove it in Source Folder but specify in content.
Sample as below:
I checked the result:

How to use robocopy to copy files from a folder folders (robocopy need to go through every subfolder and check for files)

#Looping through header files and copy to src/for_src folder
%foreach file_h in $(FOR_INCLUDE_FILES,A)
%exec robocopy /MIR $(FOR_INCLUDE_DIR) $(FOR_PROJECT_OUTPUT_DELIVERY_DIR)/ASM/src/for_src $(file_h,B,>.h)
%endfor
With the above lines i am trying to loop thru the list of files and trying to only copy the matching files of the list using robocopy.
The source directory is a mother folder inside two other folders were there namely asil and QM
My expectation is to search for the file in every iteration inside those sub folders and copy them to the destination folder.
Please help me on how to do copy only the matching files and search inside folder folders for the matching files.

What is the most efficient way of adding new files to ClearCase dynamic view by using a text file containing list of changed files?

I have a certain folder(named SDK) containing many other folders as a VOB element in my dynamic view.
/vobs/tools/SDK
I also have a updated version of that folder elsewhere as view private (as flat files).
/homes/user/SDK
I need to add files which were introduced in the updated version to the checked in version which did not have them. I have a text file containing all the files which were newly introduced in the updated version.
/homes/user/files.txt
Contents of files.txt
./a/b/abc.cpp
./s/t/xyz.cpp
.
.
.
Which is the best way to have these files checked in at at appropriate location?
clearfsimport will not work because it takes the leaf of the source path and checks that at the target VOB location.
i.e.
clearfsimport -nset /homes/user/SDK/a/b/abc.cpp /vobs/tools/SDK
clearfsimport -nset /homes/user/SDK/s/t/xyz.cpp /vobs/tools/SDK
wouldn't create the /a/b/ and /s/t/ directories in /vobs/tools/.
I could use mkelem but that would require me to manually create the directory /a/ then /a/b/ and then copy the file abc.cpp and checkin back the newly created directories and the file itself.
Can someone suggest the most efficient way of doing it?
Yet clearfsimport should work (to import multiple files):
clearfsimport -preview -rec -nset /homes/user/SDK /vobs/tools/SDK
# or
clearfsimport -preview -rec -nset /homes/user/SDK/\* /vobs/tools/SDK
That should import all elements, but checkout and update only the ones modified, and create the one missing.
All that in /vobs/tools/SDK, not /vobs/tools.
Since there are too many files in /vobs/tools/SDK, copy the ones which have been modified in /vobs/tools/SDK_to_import, with their exact folder structure (like /homes/user/SDK_to_import/a/b/abc.cpp).
The clearfsimport, by default, will not remove the files of the destination folder which are not present in the source folder.
But it will update those files in the destination folder /vobs/tools/SDK.

Eclipse svn move/rename doesn't work on all-lowercase filenames?

I am renaming a series of .js files using Refactor -> Rename.
They all work except when I rename a file to an all-lowercase name (i.e. rename Calendar.js to calendar.js). I get this error:
move C:/Users/JohnDeer/workspace/MyApp/WebContent/scripts/ui/Calendar.js C:/Users/JohnDeer/workspace/MyApp/WebContent/scripts/ui/calendar.js
Path is not a working copy directory
svn: Path 'C:\Users\JohnDeer\workspace\MyApp\WebContent\scripts\ui\calendar.js' is not a directory
I checked the ui folder and there is a .svn folder in it.
I think the problem is that file names are not case sensitive in Windows. So the lowercase name registers as the original name and maybe when the source file is the same as the destination, the latter is understood as a directory.
As a workaround you can try to use a temporary intermediate file:
rename Calendar.js to tmp.js
then rename tmp.js to calendar.js
Another possibility is to rename the file in the repository by hand (this can be done using Eclipse's Repository Browsing View as well as from the command line) and then update the project.