rpms/eclipse-slice2java/F-11 eclipse-slice2java-README, NONE, 1.1 eclipse-slice2java.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
mef
mef at fedoraproject.org
Wed Dec 2 16:08:33 UTC 2009
Author: mef
Update of /cvs/pkgs/rpms/eclipse-slice2java/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv12802/F-11
Modified Files:
.cvsignore sources
Added Files:
eclipse-slice2java-README eclipse-slice2java.spec
Log Message:
Add to branches
--- NEW FILE eclipse-slice2java-README ---
Configuring the Ice SDK
After installing the plugin, restart Eclipse, choose Preferences from the
Window menu, select Slice2Java, and review the default setting for the
location of your Ice installation. The property pane will display an error
message if the plug-in considers the specified location to be invalid. If
necessary, click Browse... to pick the top-level directory of your Ice
installation and apply your changes.
Activating the Plugin for a Project
After installing the plug-in, you can use it in your Eclipse project by
right-clicking on the project, choosing Slice2Java and clicking Add
Slice2Java builder. The plug-in immediately makes several additions to your
project:
- Creates a slice subdirectory to contain your Slice files. The plug-in
automatically compiles any Slice file that you add to this directory.
- Creates a generated subdirectory to hold the Java source files that
the slice2java translator generates from your Slice files.
- Adds a library reference to the Ice run time JAR file (Ice.jar) for
non-Android projects. The plug-in assumes that the JAR file resides
in the lib subdirectory of your Ice installation.
Configuring Project Settings
To configure the Slice2Java plug-in, select Properties from the Project
menu or right-click on the name of your project and choose Properties.
Click on Slice2Java Properties to view the plug-in's configuration
settings, which are presented in three tabs:
Source
This tab configures the directories of your Slice files and generated code.
The plug-in includes the slice subdirectory by default, but you can remove
this directory and add other directories if necessary. The plug-in only
compiles Slice files that are located in the configured subdirectories.
For the generated code, the plug-in uses the default name generated for the
subdirectory. If you want to store your generated code in a different
directory, you must first create the directory and then click Browse to
select it. Be aware that the plug-in requires exclusive use of the
subdirectory you designate, therefore you must not place other project
resources in it.
Options
This tab is where you configure additional plug-in settings. You can enter
a list of include directories corresponding to the compiler's -I option.
You can also specify preprocessor macros and metadata definitions in the
fields provided. Finally, checkboxes offer additional control over certain
features of the plug-in and the Slice compiler. When enabled, the
checkboxes have the following semantics:
- Enable stream generates code to support the dynamic streaming API
- Enable tie generates TIE classes
- Enable ice instructs the compiler to accept Slice symbols that
use the ice prefix
- Include Ice Slice Files adds an implicit include (-I) option that
refers to the slice subdirectory of your Ice installation
- Enable console causes the plug-in to emit diagnostic information
about its activities to Eclipse's console
Libraries
This tab allows you to configure the Ice JAR files with which to build your
application. The Ice Library entry in your project's build path is
substituted with the JAR files that you add to this list. If you remove the
Ice Library entry from your build path, this list has no effect and you
will need to configure the build path manually.
Note that Android projects cannot use the Ice Library indirect reference,
therefore you must manually add IceAndroid.jar to your build path:
1. Select Java Build Path in the project's properties
2. Click on the Libraries tab
3. Click Add External JARs... and choose IceAndroid.jar
4. Click OK to save your changes
The plug-in always rebuilds a project after its properties have been
changed, but it may be necessary to refresh the project after changing a
project's build path. To refresh a project, select it and press F5, or
right-click on the project and choose Refresh.
--- NEW FILE eclipse-slice2java.spec ---
%define install_loc %{_datadir}/eclipse/dropins/slice2java
%define date 20091005
Summary: A plugin that integrates Eclipse with Ice object middleware
Name: eclipse-slice2java
Version: 3.3.1.%{date}
Release: 1%{?dist}
License: EPL
Group: Development/Tools
URL: http://www.zeroc.com/eclipse.html
Source0: http://www.zeroc.com/download/eclipse/Slice2JavaPlugin-%{version}.tar.gz
# Adapted from the instructions at http://www.zeroc.com/eclipse.html
Source1: eclipse-slice2java-README
BuildRequires: eclipse-pde >= 1:3.4.0
Requires: eclipse-platform >= 3.4.0
Requires: ice-java >= 3.3.1
# No Ice on this arch, so the plugin doesn't make sense
ExcludeArch: ppc64
# Can this coexist with the ExcludeArch above?
BuildArch: noarch
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
%description
The slice2java plugin manages the translation of Slice to Java.
The plugin computes dependencies between Slice files and automatically
recompiles Slice files when necessary. The plugin also manages
the generated code to eliminate obsolete files.
%prep
%setup -q -n Slice2JavaPlugin-%{version}
cp %{SOURCE1} ./README
%build
%{_libdir}/eclipse/buildscripts/pdebuild
%install
%{__rm} -rf $RPM_BUILD_ROOT
install -d -m 755 $RPM_BUILD_ROOT%{install_loc}
%{__unzip} -q -d $RPM_BUILD_ROOT%{install_loc} \
build/rpmBuild/com.zeroc.Slice2Java.zip
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README CHANGES
%{install_loc}
%changelog
* Wed Nov 25 2009 Mary Ellen Foster <mefoster at gmail.com> - 3.3.1.20091005-1
- Update to newer version
- Include changelog in documentation
* Wed Nov 25 2009 Mary Ellen Foster <mefoster at gmail.com> - 3.3.1.20090330-2
- Remove GCJ bits
- Remove unnecessary BuildRequirement and arguments to pdebuild
- Fix typo in README file
- Add date to version string
- Clean up use of macros
* Wed Jul 8 2009 Mary Ellen Foster <mefoster at gmail.com> - 3.3.1-1
- Initial package
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/eclipse-slice2java/F-11/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore 1 Dec 2009 18:44:51 -0000 1.1
+++ .cvsignore 2 Dec 2009 16:08:32 -0000 1.2
@@ -0,0 +1 @@
+Slice2JavaPlugin-3.3.1.20091005.tar.gz
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/eclipse-slice2java/F-11/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources 1 Dec 2009 18:44:51 -0000 1.1
+++ sources 2 Dec 2009 16:08:32 -0000 1.2
@@ -0,0 +1 @@
+a08267848d03576ed5905b18145dde02 Slice2JavaPlugin-3.3.1.20091005.tar.gz
More information about the scm-commits
mailing list