Skip to main content
summaryrefslogtreecommitdiffstats
path: root/releng
diff options
context:
space:
mode:
authorJonah Graham2018-11-20 13:48:33 +0000
committerJonah Graham2018-11-22 21:47:02 +0000
commit4f9a44aa3d912d8e2d4da21b02ec683d75fd69eb (patch)
tree0711ce1b51346e03e36c6d23d6bf420c92cd6529 /releng
parent37f0f660c868b7570516843db01d51c08cbc75e2 (diff)
downloadorg.eclipse.cdt-4f9a44aa3d912d8e2d4da21b02ec683d75fd69eb.tar.gz
org.eclipse.cdt-4f9a44aa3d912d8e2d4da21b02ec683d75fd69eb.tar.xz
org.eclipse.cdt-4f9a44aa3d912d8e2d4da21b02ec683d75fd69eb.zip
Bug 540373: Standard .settings for JDT/PDE
This commit contains the formatter settings and compiler settings, using org.eclipse.cdt.core as the master for .settings and a script to copy them to all the other projects with apply_jdt_prefs_to_all_projects.sh Change-Id: Ifd1a45879bed716273cae0ea05b55f629210c36e
Diffstat (limited to 'releng')
-rwxr-xr-xreleng/scripts/apply_jdt_prefs_to_all_projects.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/releng/scripts/apply_jdt_prefs_to_all_projects.sh b/releng/scripts/apply_jdt_prefs_to_all_projects.sh
new file mode 100755
index 00000000000..dee33a0d9a5
--- /dev/null
+++ b/releng/scripts/apply_jdt_prefs_to_all_projects.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+for i in `find . -name .project`; do
+ d=`dirname $i`;
+ if test ! -e $d/feature.xml; then
+ mkdir -p $d/.settings
+ cp core/org.eclipse.cdt.core/.settings/org.eclipse.jdt.* core/org.eclipse.cdt.core/.settings/org.eclipse.pde.* $d/.settings
+ # For test plug-ins, don't warn on missing NLS
+ if echo $i | grep '\.tests[/\.]' > /dev/null; then
+ sed -i '-es@org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=warning@org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore@' $d/.settings/org.eclipse.jdt.core.prefs
+ fi
+ fi
+done
+

Back to the top