is it possible in Eclipse-based IDE to add version of software to exec. file name automatically? The default name is set project properties (Artifact name):
I want to add to this name a version stored preferably in a .h file to be accessible in code.
For ex. #define _VERSION_ "ver1" so the final executable for a project named "Proj" wouldn't be Proj.bin but Projver1.bin
Related
I wanna make a C++ program that will all of its code into the an executable file with the current folder name. And this is because I wanna make a project like thing. And the project name is the current folder name and that's why I want the executable to be named with the current folder. But ${fileDirname} variable prints the whole path instead of the basename of the folder. Of course, I can use make file to build them, but the lauch file requires the executable file name, and I can't put the folder name there. And I don't want to change this launch.json for every project. Please help me!!
I have a Project that I have built on Eclipse. I have a property file added in the src directory. The java class file is available in bin, but the property file is not available. Where am I going wrong?
Assuming the type of project is Java Project
Right click on the project and select properties option. Check in the Java build path all files under source folder are included or not and also check if some files are excluded.
In my case property file is being copied to bin folder. See the picture below.
Hierarchy of source folder and bin folder are same in my case.
If project is of type plugin project
Open the Manifest.mf file in Plugin Manifest editor and go to Build tab. Check the property file is selected here if NOT then select the file and check.
Edit:
Troubleshooting steps:
Simply Restart eclipse and completely clean and build the workspace and check.
I am using Maven with Tycho plugin to materialize the Eclipse RCP product. What I need is when I right-click the product exe file and choose properties I need some relevant information onthe Details tab (File Description, Product Name, Product Version...).
Now I have found so far, that this could be achieved with .rc file with VERSIONINFO statement
(see Comment 10 at this bug). I also found in tycho-user mailing list that rc file CAN be included in Tycho build to achieve the desired behavior. Nontheless I was unable to find out where to put the rc file, or how to name it or where to set its location.
Thanks
You are misreading the bugzilla discussion, as that is only possible by self-compiling the eclipse launcher source (with a modified rc file).
However, there is an alternative: You can patch the launcher executable manually (using any kind of resource editor) and then put it into your product as root file. This works with tycho, I use that approach. The drawback is of course that this executable will not be updated, if you change branding details in the product definition file.
Alternatively to a root file you could also overwrite the launcher executable during an installation creation (outside of Eclipse). E.g. we create an NSIS installer around an RCP app and can also modify it there.
I am using WaveMaker and Eclipse IDE. In WaveMaker,I create java services and edit them using eclipse. Have to set its default service package's path into services/serviceName/src package folder.Right clicking on src folder and select 'Use as Source Folder' option open another window.
Now the problem is:
my folder name is now : services/serviceName/src/com/subpackage1/subpackage2/subpackage3/subpackage4/subpackage5
I want to rename it as services/serviceName/src with default package in which java file is there. Its not allowing me to rename it as above..
Below is the screenshot.
I want to rename it to services/userSignupService/src
I think you're slightly mistaken here.
services/serviceName/src/com/subpackage1/subpackage2 is not the name of your folder. It is just the full package path.
Your services/serviceName/src will still be there if you can go to the workspace in Windows Explorer and explore
Okay. I was giving full path name while creating java service in wavemaker. I've created it without full path. and in Eclipse, Right Click>Build Path>Use as source folder works.
In Windows I have an environment variable EXTERNAL_LIB_ROOT that points to C:\Program Files\MyExternalLibRoot. On another machine, it may point to C:\ExternalLibs.
In an ant build.xml file I would use:
<pathelement location="${env.EXTERNAL_LIB_ROOT}/path/to/jar.jar"/>
How do I set up an Eclipse project .classpath file to use the EXTERNAL_LIB_ROOT environment variable? Is it possible to have Eclipse auto generate the build.xml file using the environment variable as above?
Not an environment variable, but you can set up a Path Variable in Eclipse. Path variables are per-workspace. They are therefore a convenient way of sharing a common location among multiple projects within a workspace. I have used them to share a lib folder among projects.
To create a Path Variable (either for the first time, or to re-use an existing one in a project):
File / New / Folder
Opens the New Folder dialog
Click on the Advanced button
Select the "Link to folder in the file system" check box
Click the Variables button
Opens the Select Path Variable dialog
Select or create a Path Variable
In your case, create a variable called EXTERNAL_LIB_ROOT.
(BTW, rather than generating a build.xml from your .classpath, I would suggest instead creating .classpath and .project from your build.xml.)
Maybe the Ant addon Ant4Eclipse will help you, see http://www.ant4eclipse.org/userguide-jdt and jdtClassPathVariable