trafodion-codereview mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From narendragoyal <...@git.apache.org>
Subject [GitHub] trafodion pull request #1753: [TRAFODION-3241]support both jdk1.7 and jdk1.8
Date Thu, 06 Dec 2018 21:44:11 GMT
Github user narendragoyal commented on a diff in the pull request:

    https://github.com/apache/trafodion/pull/1753#discussion_r239623274
  
    --- Diff: core/conn/jdbcT4/Makefile ---
    @@ -26,17 +26,20 @@ include ../../macros.gmk #top level
     all: build_all
     
     build_all: LICENSE NOTICE 
    -	echo "$(MAVEN) package -DskipTests"
    -	set -o pipefail && $(MAVEN) package -DskipTests | tee build_jdbct4.log | grep
--line-buffered -E -e '^\[[^WId]' -e '^\[INFO\] B[Uu][Ii][Ll][Dd]' -e 'to compile'
    -	cp target/jdbcT4-${TRAFODION_VER}.jar ${TRAF_HOME}/export/lib
    -	mkdir -p ../clients
    -	mv target/jdbcT4-${TRAFODION_VER}.zip ../clients
    -	#ln -sf ${TRAF_HOME}/export/lib/jdbcT4-${TRAFODION_VER}.jar ${TRAF_HOME}/export/lib/jdbcT4.jar
    -	`cd ${TRAF_HOME}/export/lib;ln -sf jdbcT4-${TRAFODION_VER}.jar jdbcT4.jar`
    +	@if [ ! -f target/*.jar ]; then \
    --- End diff --
    
    Instead of target/*.jar, should it check for the exact file that we are trying to build.
What if TRAFODION_VER changes or there is some other JAR already in the 'target' directory.


---

Mime
View raw message