I am trying to create one folder under src/test/resources but i am not getting proper folder
getting like below screen shot
but i need like below image
There is no difference between the two folders , it dependes to eclipse perspective , but if you want show folder icon and not sources icon you can simply change the name from config to config-project like this :
Right click on the project. Select properties. Go to Java Build path.
Select source tab. There you'll get an entry for src/test/resources. Expand that node, this will show following nodes:
Double click on excluded. Add exclusion patters as I have added testInput:
In your case it'll be config. press Finish ->Ok. This will make your eclipse to treat config as non source folder.
I have this already existing Talend Open Studio project that I simply wish to rename from "testProject1" for example, to "Project1".
Can someone provide simple step by step please as for some forums talk about IMPORTING AN EXISTING PROJECT AND SIMPLY PROVIDE A NEW NAME and then CLICK ON THE BROWSE BUTTON BUT POINT to the already existing project name (testProject1).
Does anyone know if this will work ? Do we need to then copy/paste some folders here and there or no need ? Anyone knows another way to rename an already existing project name?
FYI. I haven't tested it on old TOS (Talend Open Studio). The current TOS version I'm using is 7.3
Let's say we want to rename the current project name OLD_PROJECT_NAME to NEW_PROJECT_NAME
Close TOS
Go to your workspace and open your project root folder
Look for .project file and open it with your favorite text editor
Change OLD_PROJECT_NAME, to the one you wanted and also rename the root folder name with the new name. For the sake of example, NEW_PROJECT_NAME
Opentalend.project file and changetechnicalLabel attribute value to the new project name. Make the name all in uppercase. and change label attribute value to the project name you wanted in any letter case you want
(if you don't get one, you can skip this step)
Open TOS and now you won't see the OLD_PROJECT_NAME on the list
Click on Import an existing project
On the new window, for Project Name, insert the new project name NEW_PROJECT_NAME and for Select root directory click browse and go inside your root folder and click Select Folder
If you encountered java.lang.NullPointerException while importing, move the newly renamed project folder to a desktop or other working area.
You can now start the import from there. This will copy the project to the Talend workspace after the import is done.
DONE
I would suggest that create a new project with whatever name you have and import all the jobs from the previous project. Previous project's folder will be in workspace folder or whatever path you have set for the workspace.
Alternate solution is given in the following link :
https://www.talendforge.org/forum/viewtopic.php?id=41577
Google well before posting a question.
Environment
Eclipse Mars 4.5.0
I'm trying to create a package with name com.javalabs.web.action but instead of that Eclipse created a folder inside com.javalabs.web.
As you can see in the following picture, the icon is not the same that, for example actions.
The problem seems to be only with the name action, because a could do that with actions and other names.
I don't care about the package icon, but the big issue is that Eclipse doesn't recognise de classes inside that folder as their classpath.
Any idea of what can be?
Click on 'src' folder and refresh. There you go..
Check the "Resource Filters" configured for your project (you can find them as a child of the "Resources" entry in the project properties).
The next set of filters is in the "Java Build Path" where you can configure exclude patterns per source folder.
That's what I did step by step to solve the problem:
Right click on Project Folder > Properties > "Java Build Path"
Select source folder where you are creating the package
Double click on "Excluded" under the folder you want changes
Edit
Under Exclusions patterns > remove everything you need to include specially remove the **
Finish
Apply
I have recently updated to Eclipse 4.3 (SR1, WTP). And I have an issue: when I want to create something: a file, a class, a dir, etc:
I right click on a dir (or package); e.g. "myDir", or "myPackage"
the wizard appears, but it doesn't propose "myDir" or "myPackage" as parent element. I need to manually specify it
Do you have any idea what may cause this strange behaviour?
For Java Eclipse will only use the folder / package if the folder you right click on in is a source folder (usually the src folder). Source folders are defined in the project preferences in the Java Build Path Source tab.
In Eclipse, I have one existing project, A. Right now, I have just created another project, B, which is empty. Is it possible to copy all the files of project A, including its source code and related libraries to project B? There are a lot of involved libraries in project A. How to do this copying process correctly to ensure the copied files can still be compiled?
This question appears in Google search as top result for query "copy project in eclipse".
To copy project in Eclipse:
1) right click on project in Package Explorer view;
2) choose Copy;
3) right click on free place in Package Explorer view;
4) choose Paste;
5) enter new name in the prompt window.
To answer actual question, the best way is to delete project B and after -- copy project A as explained above and give it name B.
Close Eclipse
Copy the folder of existing project to anywhere on your disk.
Start Eclipse. Turn off the automatically build.
In the Eclipse do Refactor / Rename to the new project name. (If it connected to CVS/SVN disconnect before rename.)
Import back the old project from place where you copied in the second step.
Turn on the automatically build.
Enjoy them!
You can Import the project
OR
Assuming both project A and B are of same type:
You can copy the contents of src folder as it is.
For the libraries, just go to the build path and add them in the ssame way you did for project A.
Since B is empty, you can just copy project A in the Package Explorer and name the copy B.
Create a duplicate/copy of an existing project (in the workspace).
Then in Eclipse, click file->import
Select import existing projects into workspace
Check the radio button "Select root directory"
Browse your project (the new file you copied in workspace in step 1)
Done!
In the project Explorer, right click your old project, click "Copy", right click again click on "Paste" this time, change the default given name "Copy of My_Old_Project" to any of your choice, after the copy is done, go to the "Search" tab in Eclipse, then to --> "Search", on the File Search, type the old name of your project, make sure that your scope is only "Enclosing project", change all occurrences into the new name, run the project, you are all set...
only thing I noticed about this is that the url will still be of the old project.
For a Gradle project, I had to add two extra steps to mOna's answer, which I will copy for completeness.
Create a duplicate/copy of an existing project (in the workspace).
Then in Eclipse, click file->import
Select import existing projects into workspace
Check the radio button "Select root directory"
Browse your project (the new file you copied in workspace in step 1)
Edit .project file and change the and the to match the new project.
Edit settings.gradle and change rootProject.name to match the new project.
I assume that the renaming in some of the above answers does step 6, but I couldn't get it to work. No matter what I tried, without those extra steps the code looked ok but dependencies were not handled correctly and errors appeared everywhere. I was even able to run gradle on my project from the command line and it "built", but was actually building the old project.
Eclipse has a option in file menu like import existing projec.From that you can import the existing project with all content.I hope this is the solution that you are looking for.