blob: 1ac43e827bcdaf8a3a7342c5e9e7486ed5567596 [file] [log] [blame]
<?xml version="1.0" encoding="ISO-8859-1" ?>
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
<title>Using Ext-Scripting in Eclipse</title>
<section name="Navigation Top">
<a href="using_intellij.html">&lt;&lt;Back to the Intellij Users Guide</a>
<a href="setup_steps.html">On to the appendix: Setup Steps&gt;&gt;</a>
<section name="Introduction">
Netbeans also works perfectly in conjunction with Ext-Scripting
pretty much everything said for Eclipse and Intellij also applies to NetBeans.
The biggest restriction is if you want to use netbeans in conjunction with maven
only one source folder is picked up and you cannot use additional source folders
like for instance Intellij or Eclipse allow. So either dont use maven or
use package whitelisting as workaround if you want to use Netbeans.
<li>Ext-Scripting does its own incremental compile cycle depending on the sources changed</li>
<li>Deployment and Redeployment is not needed as long as Ext-Scripting itself can pick up the changes
<section name="Setting up Eclipse">
<subsection name="Prerequirements">
<p>Secondly make sure that your project compiles properly
and can be properly deployed from eclipse. Turn off any auto deployment mechanisms
which might trigger unnecessary restarts.
<p>If you use scripting languages make sure to have the proper
plugin installed for the scripting language of your choice
<section name="Setting up Ext-Scripting specifics">
If you only have one sourcepath you might have a look at the package whitelisting
to mark only the packages you actively want to edit for this deployment cycle.
This speeds up startup time and helps generally to avoid restarts.
If you use different paths then you can work by including the added source paths as sources
like WEB-INF/java or WEB-INF/groovy (not classes compiled via Ext-Scripting always have higher loading
priority than what can be found in WEB-INF/classes), so there is no need to change any target
source directories always are enough.
To change your source directories open
<b>File->Project Properties -> Sources - > Source Package Folders</b>
and press the Add Folder button
<img src="images/netbeans_source1.jpg" alt="setting the sourcepath from Intellij"/>
After that you get a file dialog where you can choose your source directory.
<img src="images/netbeans_source2.jpg" alt="setting the sourcepath from Intellij"/>
You can leave your compile target directory unchanged
If you prefer your own source paths to be the sources of everything set the
accordingly in your web.xml the same goes for the resource roots.
<section name="Navigation Bottom">
<a href="using_intellij.html">&lt;&lt;Back to the Intellij Users Guide</a>
<a href="setup_steps.html">On to the appendix: Setup Steps&gt;&gt;</a>