public void setChaincodeSourceLocation ( File chaincodeSourceLocation ) throws InvalidArgumentException { if ( chaincodeSourceLocation == null ) { throw new InvalidArgumentException ( "Chaincode source location may not be null." ) ; } if ( chaincodeInputStream != null ) { throw new InvalidArgumentException ( "Error setting chaincode location. Chaincode input stream already set. Only one or the other maybe set." ) ; } this . chaincodeSourceLocation = chaincodeSourceLocation ; }
The location of the chaincode . Chaincode input stream and source location can not both be set .