add a existing javascript file to netbeans project, is it possible - html

I want to try netbeans for web development. I created a new local project. I have my remote server files (javascript, php etc) accessible locally on my computer using sftp in linux, now I just want to add these files to the project but there is no 'add files' possibility. Have Oracle forgotten something so obvious as add existing files? I can't believe it.

To add an external file to your NetBeans project:
Select the file in the file system that you want to add to your NetBeans project using a file manager (such as File Explorer on Windows).
Right-click and select Copy from the popup menu.
Within NetBeans go to your project and position the mouse over the target directory to which you want to copy the file. You can do this in the Projects panel or the Files panel as appropriate.
Right-click and select Paste.
That's all there is to it. This works on Linux and Windows. You can also do drag and drop, though on Linux the file is copied whereas on Windows the file is moved.
There is no menu option in NetBeans such as File -> Import existing file to do this. Just use an external file manager.
Update/clarification:
The instructions above only specify how to copy an existing file into an existing project.
There is no way to include an individual file that is external to the structure of a NetBeans project.
However, it is possible to create a symbolic link (junction) from a NetBeans project directory to an external directory. To do that open a Command Prompt window as an administrator and enter a command similar to this:
mklink /J D:\NetBeansProjects\HTML5DemoCss\nbProject\MyLink2 C:\sftp
That will create a new directory in your NetBeans project named MyLink2 which maps to an external directory named c:\sftp. You can then process files in that external directory C:\sftp as though they were within your project directory MyLink.

Related

How to open a project in PhpStorm using command line

I am using Git Command Line, Homestead, Windows 10, PhpStorm 2017.3.
I want to open any project in PhpStorm using git bash /command line.
Just pass FULL path to the project root folder as parameter to PhpStorm executable file -- IDE will either open existing project (if .idea subfolder exist) or will create brand new project from those files.
It works the same as if you would use Open from within PhpStorm and point to such folder.
An example:
"C:\Program Files\JetBrains\PhpStorm\bin\phpstorm64.exe" "C:\Projects\MyProject"
phpstorm64.exe is for 64-bit Java
For 32-bit Java you should use phpstorm.exe
You can add path to PhpStorm executable into system's PATH variable so there will be no need to use the full path. But then you have to install new versions into the same folder or update PATH as needed. The you could just use phpstorm64.exe "C:\Projects\MyProject".
You can also create some alias/batch file (similar idea to what Mac/Linux user have -- there IDE creates that for them) so it's easier to use. It's a bit more initial work but easier to keep the path up to date.
You may want to specify another path for your program but if nothing else just use this I guess.

PhpStorm Xdebug how do I configure path mapping for full folder

I have this setup that one plugin in my project is symlinked to a different folder on my local machine.
Something like this:
/Sites/MyWebProject <-- contains application and PhpStorm project
/MyPlugins/MyCustomPlugin <-- contains my custom plugin that I am working on.
/Sites/MyWebProject/plugins/MyCustomPlugin --> symlinked to: /MyPlugins/MyCustomPlugin
Now when I run Xdebug and add a breakpoint PhpStorm will open the symlinked file. Then I can add a 'path mapping' and this file will be recognised as expected.
My issue is that I want to setup the 'path mapping' for the whole directory. And not on a 'per-file' base.
Is this possible?

How to export and import Run/Debug configurations in PHPStorm?

I have a lot of similar projects created in PHPStorm and I need the same Run/Debug configuration in all my projects. Right now the Run/Debug configuration is empty when I create a new project.
I have tried exporting and importing settings from the file menu but that does not copy the Run/Debug configuration of project A into project B.
Can someone please tell me how to copy the Run/Debug configuration of one project into another?
Run/Debug Configurations are project-specific and therefore cannot be exported/imported via File | Export/Import Settings... which is for IDE-wide settings only.
By default, all Run/Debug configurations are stored in YourProject/.idea/workspace.xml file together with other developer-specific settings.
In order to be able to share (better say -- copy) between the projects:
Make sure that each of such Run/Debug configurations has "Shared" box ticked.
Such shared run configurations will be stored in separate *.xml files in YourProject/.idea/runConfigurations/ folder which you can include in VCS if necessary.
You can copy these files from one project to another (while project is closed in IDE, of course).

Moving a web methods folder into webMethods?

I had to switch computers at work and my WEBMethods project was not moved to the new computer. After installing WEBMethods we noticed that my project had not been copied over.
So I went in to the laptop and found the folder that contains the webmethods project.
I copied all of the files in that folder along with the folder name to my new computer.
I know want to import that directory to WEBMethods (I noticed WEBMethods stores all of the information in a huge, huge XML file)
This is the folder that contains all of my files for this specific project.
Question: How can I get it moved into WEBMethods?
Here's an easy way to move your package:
1) Login to the webMethods administrative web console
2) Navigate to Packages > Management. You'll see a list of all the packages on your integration server.
3) Identify the packages related to your project and for each package click on
4) On the "Archive" setup page, leave everything as is except for the archive name. Name it to something you'll easily recognize.
5) At the bottom of the "Archive" setup page, click on the "Create Archive" button. This will create a zip file in the following folder
IntegrationServer\replicate\outbound
6) Copy the zip file to the new computer at the following location:
IntegrationServer\replicate\inbound
7) In the webMEthods administrative web console of the new computer, navigate to Packages > Management and click on the "Install Inbound Releases" link.
8) Select the zip file in the select box
9) Click on "Install release".
While copying packages it is always recommended to export the package and load it to new location. You can either use the Administrator Page to get the package or in case if you dont have Administrator access, then in that case you can use your developer/ designer to get the package. Follow below steps:
Select the package you want to move.
For Developer, click on File Menu(top left corner)>Export option to save the package on your current system.
For Designer, right click on the package you want to move. Select Export from Server option and save the package on your current system.
The package is now saved as a ZIP file. Copy the ZIP file to the new system.
In your new system, place the ZIP file to- IntegrationServer\replicate\inbound folder.
Open webMethods Administrator page and Select Packages>Management option. Click on Install inbound Releases Link.
Select the package name from dropdown and click on Install release.
In case you dont have Administrator access, you can pass the zip file to the person who has the access and they can follow the steps 5 to 7
If your package exists on an accessible server(A server you can login from your current machine), then open the server session in which the package exists. Also open the server where you want to place the package in the same Developer/designer. Using this way you can simply copy the package from one server and paste to other.
But while using this, make sure that dependent packages if any, exists in the target server.
Its always better , if you create the Release. Go to Publish link and create the full Build or patch.whatever you want, add the subscription to it and send it to remotes system via clicking send release link.

Package Control - plugin to run file in browser

I am looking plugin to run .html file in browser and also open folder in windows explorer.
The reason is simply. I always start work in the same way: run Sublime Text 2, click 16 times with mouse on folder to open folder with project and run index.html or other. I also need open folder because i copy there from time to time some graphics or other files.
Navigating to files
You can save your workspace as a project in Sublime Text so you don't have to re-navigate to the same files every time.
Open the files you need and lay them out however you like
Go to Project > Save Project As and save the project file somewhere convenient
Open the project file to resume work on those files
As a side note, I highly recommend the SyncedSidebar plugin to automatically expand the sidebar to reveal the files you have open.
You should also be able to right click in the file you're editing and "Reveal in Windows Explorer" (I use a Mac so I can only verify "Reveal in Finder").
Opening in a browser
You can set up a build path for this, or use a plugin like View in Browser.