How to access properties file form JAR(archive) in Install4j? - install4j

In my project jar I have config.properties file which includes the installation directory path.Now, while installation if the user changes the installation directory,I need to update the config file with new path selected by user.

Use a "Modify a ZIP file" action for that purpose. In the "Modification actions" property of the action, add a "Write properties to file" action and make sure that its "Merge into existing file" property and its "Update existing keys" child property are selected. In the "Property definitions" property you can enter key-value pairs like
installerDir=The new value

Related

How do I rename my local git repository

I've renamed my remote repository and created a new local repository from it. How do I change it within EGit in Eclipse?
Previous answer list below also has issues. The only solution appears to be:
Backup .project, etc. files
Delete existing project
Import existing local git repository as a "general project"
Put backed up files into the new project
Restart Eclipse
Rename, per se, is not the actual operation -- changing repository is the correct mindset to solving the problem according to a coworker.
Select 'Team->Disconnect'
Select 'Team->Share' On 'Share Project' dialog
Select Git and click Next
Unselect 'Use or create repository in parent folder of project'
Select the new local repository
Checkbox the project name showing correct current location and target location
Click 'Finish'
Eclipse will move existing files from previous local repository to the new local repository.
I just renamed a repository. I use LiClipse, an Eclipse variant which includes EGit. I believe there is no way to do this operation with the EGit UI. Here's how I did it outside of EGit and Eclipse, without confusing them.
In the Git perspective, right-click on the repo, and select Remove repository from view... from the pop-up menu.
A dialogue box offers to delete the repository from the workspace. I interpreted this to mean, delete the repo directory and everything in it from my disk. Press the "No" button.
In the programming language-specific perspective (PyDev, in my case), right-click on the project, and select Delete... from the pop-up menu.
A confirmation dialogue box appears. In this case, I interpret it as just confirming that I want to remove the project's entry from the project list in that perspective. There is a checkbox, "Delete this project from workspace?". Leave that checkbox unchecked. Press the "Yes" button to confirm.
In the finder or command-line, find the repository directory, and change the directory name to the new name.
Return to Eclipse, and the Git perspective.
Select menu item, File... Open projects from file system.... (There is also a small icon with a "+", above the projects list, with tooltip "Add an existing local Git repository to this view". I believe it is different but equivalent.) A dialogue box appears.
Select the (renamed) repository directory. Click Next or Finish to complete the wizard. The Repository appears in the list of Git repositories in EGit.
Return to the programming language-specific perspective appropriate for that repository.
Select menu item, File... Open projects from file system.... A dialogue box appears.
Select the (renamed) repository directory. Click Next or Finish to complete the wizard. The Repository appears in the list of Git repositories in that language-specific perspective.
The project-specific Eclipse settings appear to be stashed away in a file .project within the repository, so they are not modified by the rename happening overhead.

Hide maven build Directory in eclipseJuno/M2e/subclipse

I am using Maven3/eclipseJuno/M2e/subclipse. If I run the maven build I got the target directory in each project. When I syn with subclise all the target folder are showing as changed, is there any way to hide the target holder in the svn syn without making it as svn:ignore
You can declare any folder (or file) as derived. Right-click the resource, go to properties, and enable the derived flag under attributes.

How to set svn ignore property in Eclipse

I want to add the SVN ignore property to my project to ignore target folder and .classpath.
So I went through team → set property, but I didn't know how the configuration for the name and values would be. How can I do it?
You can set svn:ignore using Team → Add to svn:ignore on the right click of file. However, if the file is already committed to SVN this option will not be enabled.
You would need to remove it from SVN, clean up the local repository and then add svn:ignore.

Installing bundles from the local file system into Eclipse (via a p2 repository)

I have a few OSGI bundles that I would like to store in a local P2 repository. I have followed this guide:
https://docs.sonatype.org/display/TYCHO/How+to+make+existing+OSGi+bundles+consumable+by+Tycho
to use eclipsec.exe to convert the folder with bundles into a p2 repository. The resulting structure is like this:
c:\test\repo
c:\test\repo\plugins
c:\test\repo\plugins\my.bundle.jar
c:\test\repo\artifacts.jar
c:\test\repo\content.jar
Now I would like to add this repository in eclipse Helios. In the eclipse update manager I select add an press the "Local..." button where I specify the path to the repo:
Name: testRepo
Location: file:/C:/test/repo/
I then uncheck "Group items by category" but it just says "There are no items available".
How do I add this local repository to eclipse?
You need to create a new "Feature project" (New-->other-->plug-in development-->"Feature project")
Then you need to link this to your project from its project properties.
Then you need to create a new "Update Site Project" (there is a link on feature.xml Overview).
Then you need to link this to your project and the feature from its project properties.
then add a new category, and the feature you created in it, then say build and it builds the update site for you...

How do I manage the existing repositories that show up when I use Subversive?

When I create a new project from SVN the wizard pops up and instructs me to either "Create a new repository location" or "Use existing repository location". I want to remove most of the existing repositories or at least modify them but I don't see any options in Eclipse to edit or delete them.
You can switch to SVN Repository Exploring and then change the properties of the repositories or discard them