415090 Add additional permissions adjustment to make remote scripts
executable when run from Eclipse on windows.
diff --git a/tools/etfw/org.eclipse.ptp.etfw.tau/src/org/eclipse/ptp/etfw/tau/TAUPerformanceDataManager.java b/tools/etfw/org.eclipse.ptp.etfw.tau/src/org/eclipse/ptp/etfw/tau/TAUPerformanceDataManager.java
index d810ae1..2eec502 100644
--- a/tools/etfw/org.eclipse.ptp.etfw.tau/src/org/eclipse/ptp/etfw/tau/TAUPerformanceDataManager.java
+++ b/tools/etfw/org.eclipse.ptp.etfw.tau/src/org/eclipse/ptp/etfw/tau/TAUPerformanceDataManager.java
@@ -439,7 +439,12 @@
 			ppout = utilBlob.runToolGetOutput(ppl, null, directory);
 
 			try {
-				os.write(ppout);
+				if(ppout!=null)
+				{
+					os.write(ppout);
+				}else{
+					os.write("Error executing remote command".getBytes());
+				}
 				// os.write(("Moving profile data to: "+ppkFile.toString()).getBytes());
 				os.close();
 			} catch (final IOException e) {
@@ -452,7 +457,12 @@
 				for (int i = 0; i < profiles.size(); i++) {
 					os.write(profiles.get(i).getName().getBytes());
 					ppout = utilBlob.runToolGetOutput(ppl, null, profiles.get(i).toURI().getPath());
-					os.write(ppout);
+					if(ppout!=null)
+					{
+						os.write(ppout);
+					}else{
+						os.write("Error executing remote command".getBytes());
+					}
 				}
 
 				// os.write(("Moving profile data to: "+ppk.toString()).getBytes());
diff --git a/tools/etfw/org.eclipse.ptp.etfw/src/org/eclipse/ptp/internal/etfw/RemoteBuildLaunchUtils.java b/tools/etfw/org.eclipse.ptp.etfw/src/org/eclipse/ptp/internal/etfw/RemoteBuildLaunchUtils.java
index cfa5280..4f5de6c 100644
--- a/tools/etfw/org.eclipse.ptp.etfw/src/org/eclipse/ptp/internal/etfw/RemoteBuildLaunchUtils.java
+++ b/tools/etfw/org.eclipse.ptp.etfw/src/org/eclipse/ptp/internal/etfw/RemoteBuildLaunchUtils.java
@@ -449,7 +449,12 @@
 				com = envManager.createBashScript(null, false, envMgrConfig, concat);
 				final IFileStore envScript = fileManager.getResource(com);
 				final IFileInfo envInfo = envScript.fetchInfo();
+				
+				envInfo.setAttribute(EFS.ATTRIBUTE_EXECUTABLE,true);
+				
 				envInfo.setAttribute(EFS.ATTRIBUTE_OWNER_EXECUTE, true);
+					
+				
 				envScript.putInfo(envInfo, EFS.SET_ATTRIBUTES, null);
 
 			} catch (final RemoteConnectionException e) {